OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: bedges on 15 Sep 2005, 00:33:00

Title: who's in da house?
Post by: bedges on 15 Sep 2005, 00:33:00
m'kay, well first off you must appreciate how noobish i feel asking this.

here goes - i need a trigger 'on activation' line which will identify the first unit to activate it and add an action to that unit. then in the 'deactivation' field, i want to remove the action from said unit.

i have tried using thislist select 0, but that won't work in identifying the unit to add the action to, as it's an array isn't it...

i could do it with script, but i refuse to believe i'm not missing something irritatingly simple...  :-[

EDIT - nevermind... good ole this saves the day...

Code: [Select]
this addaction ["action text", "action_script.sqs"]