Warning: include(/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php): failed to open stream: No such file or directory in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Warning: include(): Failed opening '/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php' for inclusion (include_path='.:/usr/local/lib/php') in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Notice: Undefined index: OFPEC in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152
    Home   Help Login Register  

Author Topic: How to script this?  (Read 3153 times)

0 Members and 1 Guest are viewing this topic.

Offline RangerX3X

  • Members
  • *
  • Ranger, out.
    • RangerX3X
How to script this?
« on: 10 Jan 2010, 23:48:08 »
I have several triggers that are not synched to a waypoint but are in the editor to check for a condition and then result in a few things:

Condition:

WEST CountSide Units WSQDA <1

Result:

HQ sideChat "HQ to all units: Alpha Squad in Sector One has been eliminated"; "WSQDA" setMarkerColor "ColorRed"

Is it possible to script this in an .sqs file and call it from some units initialization field at the beginning of a mission, or by the init.sqf?

Would one of you gents please post me a code snippet and/or explanation of how to make this happen?

OK, I got this to work with the following script:

Code: [Select]
; HELP: Run this script from the ON ACTIVATION field of the trigger.
; CODE: [this] exec "WSQDA.sqs"
; ****************************************************************

; WSQDA Dead

HQ sideChat "HQ to all units: Alpha Squad in Sector One has been eliminated"; "WSQDA" setMarkerColor "ColorRed";

exit

But I am still calling the condition WEST CountSide Units WSQDA <1 from a switch trigger in the mission editor  >:(

Oh, and my bad, this is for Arma 2 - Please move my post there :good:
« Last Edit: 13 Jan 2010, 13:43:33 by RangerX3X »
Ranger, out.