Jump to content
Sign in to follow this  
splatsh

Activating SecOps by sqf file, how to

Recommended Posts

I have put a SecOps module on map, later on I sync it with player with this:

SOM synchronizeobjectsadd [p0];

Then I want to get my tactical airstrike automatic, and not trough a trigger radio button.

[["tactical_airstrike"], player] call BIS_SOM_addSupportRequestFunc;

How to activate it in my .sqf file?

I have try this:


SOM synchronizeobjectsadd [p0];
[["tactical_airstrike"], player] call BIS_SOM_addSupportRequestFunc;

and this

SOM synchronizeobjectsadd [p0];
[[""tactical_airstrike""], player] call BIS_SOM_addSupportRequestFunc;

nothing works

---------- Post added at 11:56 AM ---------- Previous post was at 10:50 AM ----------

Question 2, just in case of no one answer my first question

why is not this working

_trg = createTrigger["EmptyDetector",getPos player];
_trg setTriggerArea[0,0,0,false];
_trg setTriggerActivation["ALPHA","PRESENT",true];
_trg setTriggerStatements["this", "[""tactical_airstrike""], player] call BIS_SOM_addSupportRequestFunc;", ""]; 

If I create a trigger in editor with the same data it will work, why cant I create a trigger by code and get it to work??????????

Working: _trg setTriggerStatements["this", "[[""tactical_airstrike""], player] call BIS_SOM_addSupportRequestFunc;", ""];

I missed a "[" at the beginning.

Edited by splatsh

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  

×