Jump to content
Sign in to follow this  
bangabob

Scripting help. Activating different parts via triggers

Recommended Posts

Hello everybody.

Im making a mission where one player is chosen at random to become a traitor. Through using taskmaster and some basic scripting.

This is how:

Trigger:Anybody

Condition:this && isserver

On Act: t2 addAction ["identify traitor", "traitor.sqf"];

traitor.sqf

if(!isServer) then {waitUntil{!isNull player}};

_units = [s1,s2,s3,s4];

_traitor = _units select floor (random 4);

["Task3","You are the traitor","You are a sleeper agent. Kill your team without being spotted",_traitor]call SHK_Taskmaster_add;

Now i need help. I want another trigger named trigger2 to continue the script.

For example:

if(!isServer) then {waitUntil{!isNull player}};

_units = [s1,s2,s3,s4];

_traitor = _units select floor (random 4);

["Task3","You are the traitor","Hostile camp located. 103 044. Destroy the camp and

any hostiles",_traitor]call SHK_Taskmaster_add;

Wait until trigger2 activates:

hint format ["Traitor: %1", name _traitor];

Any help appreciated

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  

×