Jump to content
Sign in to follow this  
iceman77

Deleting a trigger once it's activated???

Recommended Posts

I have a COOP mission where an objective is to clear out an area.Once the area has been cleared of enemy, a friendly empty vehicle appears(VIA TRIGGER) so the team can use it.It works fine when im playing by myself.If im playing the map with people it seems that instead of spawning just ONE M113 like it's supposed to ,it spawns one for each player in the game.I JUST WANT ONE M113 TO APPEAR when the area has been cleared of enemy....no matter what...WOULD DELETING THE TRIGGER AFTER IT'S BEEN ACTIVATED HELP??MABEY NOT...

Trigger

Activation: OPFOR[NOT PRESENT]

Condition:this

On Act:m113 = "m113" createvehicle getpos helipad;getdir 45;

Share this post


Link to post
Share on other sites

The OnActivate code is executed on each client & server.

You just need to check if it's the server instead and execute it there only.

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">if (isServer) then {m113 = "m113" createvehicle getpos helipad;getdir 45;};

Share this post


Link to post
Share on other sites

if you need to delete the trigger you just can delete it wink_o.gif

name the trigger e.g. trigger1... write into the activation line: deletetrigger trigger1;

but isserver should work wink_o.gif

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×