Search the Community
Showing results for tags 'select 0'.
Found 1 result
-
Passing variables from Radio Trigger - issue
vapour posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
Hi fellow scripters In a MP mission, I have a radio trigger placed down that runs a script to shift a respawn_west marker to the location of the unit that activated the radio trigger. Normally, with an area trigger you would pass the 'unit' variable to the script by putting: nul = [thisList select 0] execVM "scriptname.sqf" in the 'ON ACTIVATION' box of the trigger, and then in the sqf file having something like: _unit = (_this select 0); What is occurring though with the radio trigger, is that it is obviously not receiving the unit's variable in the script. I get 'ERROR - UNDEFINED VARIABLE' when activating the trigger in mission. Are radio triggers a little different from area triggers in this respect? I'm assuming they either expect just one activator as opposed to many, thus may not use 'thisList', or are perhaps not recording any activator at all. I have tried nul = [this select 0] execVM "scriptname.sqf" and nul = [this] execVM "scriptname.sqf", but to no avail. Still the same error. Does any one have some bright ideas about where I may be going wrong? Any help is much appreciated.- 3 replies
-
- Radio Trigger
- Variable
-
(and 1 more)
Tagged with: