07-02-2009, 07:05 PM
Can someone help with this syntax:
I want to get rid of the MagChangeOut.sqs upon being killed but can't quite get the syntax or the [ or { right... >
Code:
;;Create Init Line String to be used in createUnit command
;;This will run the correct loadout and add the HDmag interchange event handler to the soldier
_InitLine = format ["[this] exec {%1};this addEventHandler [""killed"",{_this exec ""MagChangeOut.sqs"";""hit"",_this exec ""throwSmoke.sqs"";_this exec ""removeDeadAI.sqs""}]",_Loadout]
I want to get rid of the MagChangeOut.sqs upon being killed but can't quite get the syntax or the [ or { right... >
Marto