Home   Help Search Login Register  

Author Topic: addaction problem  (Read 574 times)

0 Members and 1 Guest are viewing this topic.

Trasher

  • Guest
addaction problem
« 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:

Offline THobson

  • OFPEC Patron
  • Former Staff
  • ****
Re:addaction problem
« Reply #1 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.


« Last Edit: 19 Dec 2004, 12:13:04 by THobson »

Trasher

  • Guest
Re:addaction problem
« Reply #2 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

Offline THobson

  • OFPEC Patron
  • Former Staff
  • ****
Re:addaction problem
« Reply #3 on: 19 Dec 2004, 12:15:07 »
hint "whatever you want"
or
hint format ["number1 = %1; number2 = %2", number1, number2]

Trasher

  • Guest
Re:addaction problem
« Reply #4 on: 19 Dec 2004, 12:18:45 »
well thats what pretty easy lol 6 months and now im a n00b again   :P  ;)