![]() |
|
|
|
#1
|
|||
|
|||
|
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. |
|
#2
|
|||
|
|||
|
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? |
|
#3
|
|||
|
|||
|
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 11:18 AM. |
|
#4
|
|||
|
|||
|
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 ! |
|
#5
|
|||
|
|||
|
Yes.
I deactivate it with GamePlay.gpGetTrigger(shortName).Enable = false; so it is not activated a second time. |
|
#6
|
|||
|
|||
|
Great, thank you very much !!
|
|
#7
|
|||
|
|||
|
Thank you, very much Kodiak. Now i can get on with planning some missions. By the way can you link groups of bombers together to create a guppe? Also is there a glossary or tutorial for scripting?
Atag, the first problem was that i could not get the aircraft actioned when the lead group hit the trigger pont.
__________________
Health Authorites warn that smoking is a health hazard. |
|
#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. |
|
#10
|
|||
|
|||
|
Hi Kodiak,
I downloaded the mission + submissions and send them to you as requested. As a matter of fact they are the same as you attached as Spawning.zip in your answer to Atag Bliss a few days ago but with a slight difference. What I did was starting the Bf110 and flew to Fruges through the SpawnArea but nothing was spawned . What can be achieved with these missions? How can one make them work? |
![]() |
| Thread Tools | |
| Display Modes | |
|
|