![]() |
|
|
|
#1
|
|||
|
|||
|
runway issue sloved. Now all i have to work out is how get the tiggers and actions working as i have no idea about scripting!
__________________
Health Authorites warn that smoking is a health hazard. |
|
#2
|
|||
|
|||
|
Without scripting your trigger and the action must have the same name.
Example, if your trigger has the name 'SpawnAirgroup1' your action must have the name 'SpawnAirgroup1', also. To post your mission. Zip the files and upload it via 'Manage Attachment' found under Additional Options if you post a message. |
|
#3
|
|||
|
|||
|
Posted zip file!!
Tried renaming triggers and actions but did not work. Thank you also for this.
__________________
Health Authorites warn that smoking is a health hazard. |
|
#4
|
|||
|
|||
|
Hi smokin,
Just had a quick look at this through the notepad. What are you trying to do with the passthroughs? Are you wanting to spawn certain planes if a particular air/ground group goes through the passthrough area? |
|
#5
|
|||
|
|||
|
Corrected:
By spawning Airgroups you should activate "only Script spawn" in their options. You use passthroughs-Triggers, there is a problem the are activated two times on enter and on leave. To avoid the second activation, you should deaktivate the trigger via script. Sometimes if a Group is not spawning, it helps to select it again in the action-options. So i've added a little script: Code:
using System;
using System.Collections;
using System.Collections.Generic;
using maddox.game;
using maddox.game.world;
public class Mission : AMission
{
public override void OnTrigger(int missionNumber, string shortName, bool active)
{
base.OnTrigger(missionNumber, shortName, active);
AiAction Action = GamePlay.gpGetAction(shortName);
if (Action != null)
Action.Do();
GamePlay.gpGetTrigger(shortName).Enable = false;
}
}
Last edited by FG28_Kodiak; 12-04-2011 at 10:18 AM. |
|
#6
|
|||
|
|||
|
Hi Kodiak,
does the script you just put here avoid a further activation of a passthrough trigger ? I've been looking for one since I made a small mission weeks ago and couldn't find a way to spawn an air group only once, as another was spawned everytime the condition was met again (in that case red planes flying through it). Thx ! |
|
#7
|
|||
|
|||
|
Yes.
I deactivate it with GamePlay.gpGetTrigger(shortName).Enable = false; so it is not activated a second time. |
|
#8
|
|||
|
|||
|
Hi Kodiak,
I downloaded your Spawning.zip but can’t see what it brings about. I loaded Bf110.mis and flew the Bf110 to the SpawnArea (near Fruges) but nothing happened. Can you help please? |
|
#9
|
|||
|
|||
|
Can you show me your mission, please?
May be you use a wrong trigger, but difficult to say without the mission. |
![]() |
| Thread Tools | |
| Display Modes | |
|
|