Forum Jump :

Author Message


Posts: 8
Rank:


Level: Member

Country: ch
Location:
Occupation:
Age: 23
In-game name: Dawnthief

 
#1 Posted at 2013-02-06 18:53        
     
Hey

I'm working on a mission, in which the players have to ambush a convoy.
For the convoy I use a Convoy Script, it uses a Game-Logic Unit to spawn the Units as soon as the Mission starts.
The init field of the Game-Logic is:

null= [this,resistance,["convoywp1","convoywp2","convoywp3"],false,5,7,["Offroad_DSHKM_Gue","BRDM2_GUE","V3S_GUE","V3S_GUE","Pickup_PK_GUE"],[],false,false]execvm "convoy.sqf";

But I dont want to spawn the units when the mission starts, but when the BLUEFOR are in a specific area.

Now, if someone could tell me (or give me the link to a guide or demo-mission) how I could make the init field of the Game-Logic to execute, I would be really happy. :-)

Thanks in Advance

Incoming bullets have the right of way....

Author Message


Posts: 1470
Rank:


Level: Member

Country: uk
Location:
Occupation:
Age:
In-game name:

 
#2 Posted at 2013-02-06 21:07        
     
You could just use a trigger set up how you want it to go off and then place your code into the on act of the trigger.

You will have to change null= [this,resistance,["convoy ect to null= [thistrigger,resistance,


Advertisement


Author Message


Posts: 8
Rank:


Level: Member

Country: ch
Location:
Occupation:
Age: 23
In-game name: Dawnthief

 
#3 Posted at 2013-02-06 21:53        
     
Thanks, works as I want now. :-)

Incoming bullets have the right of way....





Tags: Execute, Init