Jump to content
Sign in to follow this  
Raptoid21

[SOLVED] Help with players triggering Dataterminal

Recommended Posts

So, everything works except that my players cannot trigger a data terminal which completes a task and gives a new task. The odd thing is, if I'm playing I can trigger it if I teleport in as Zeus and activate it. All the triggers fire off correctly other than this. In the data terminal's init I have:

this addaction ["<t color='#FF0000'>Open Terminal</t>", {[myTerminal, 3] call BIS_fnc_DataTerminalAnimate, openterminal=true, hint 'High tech for rebels.'},[],6,true,true,"","_this distance _target < 2"];

MyTerminal being the variable name of the terminal.

 

My trigger simply has

openterminal;

I tried using hasInterface and isDedicated but those didn't seem to work, but I'm not sure I'm doing them right.

Thanks.

Edit: I have also tried in the server init 

publicVariable "openterminal";

I thought that would work but it did not.

Share this post


Link to post
Share on other sites

I finally got the right syntax, I'll leave the thread for future reference
if it's not obvious yet I have no clue what I'm doing but this finally worked 😜

this addaction ["<t color='#FF0000'>Open Terminal</t>", {[myTerminal, 3] call BIS_fnc_DataTerminalAnimate; openterminal = true; publicVariable "openterminal"; hint 'High tech for rebels.'},[],6,true,true,"","_this distance _target < 2"];

 

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  

×