OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Trasher on 19 Dec 2004, 11:55:33

Title: addaction problem
Post by: Trasher on 19 Dec 2004, 11:55:33
ok guys i need som hlp with this k

i want a unit called W1 to get an action "contact HQ" when he is near the radio called radio

the action should trigger the radioout.sqs

and after that a Hint should appear

plz help =)

cheers mates  :cheers:
Title: Re:addaction problem
Post by: THobson on 19 Dec 2004, 12:09:39
If you add the action to the radio he will get the action on his list when he goes near the radio.  He will need to be a within a few feet though.  

radioname addAction ["Turn on the radio", "radioout.sqs"]

put the hint in radioout.sqs

If you want it to happen when he is further away try grouping him with a trigger and have the trigger do what you want.


Title: Re:addaction problem
Post by: Trasher on 19 Dec 2004, 12:13:43
ok but i havent made any missions for ofp for the past 6 months so could anyone refresh my memory how to make an hint    :) lol
Title: Re:addaction problem
Post by: THobson on 19 Dec 2004, 12:15:07
hint "whatever you want"
or
hint format ["number1 = %1; number2 = %2", number1, number2]
Title: Re:addaction problem
Post by: Trasher on 19 Dec 2004, 12:18:45
well thats what pretty easy lol 6 months and now im a n00b again   :P  ;)