Home   Help Search Login Register  

Author Topic: Hint question  (Read 1017 times)

0 Members and 1 Guest are viewing this topic.

Ace Productions

  • Guest
Hint question
« on: 12 Nov 2003, 22:21:33 »
I get an error when I'm trying to display the following info from a "fired" EH:

_panzer=_this select 0
_weapon=_this select 1
_muzzle=_this select 2
_mode=_this select 3
_ammo=_this select 4

Hint format["Vehicle: %1\nWeapon: %2\nMode: %3\nAmmo: %4",_panzer,_weapon,_mode,_ammo]
~10
Exit


Can someone please correct me?

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Hint question
« Reply #1 on: 12 Nov 2003, 23:09:27 »
What's the error message?
Plenty of reviewed ArmA missions for you to play

Offline Igor Drukov

  • Contributing Member
  • **
  • Conscientious Subjector
Re:Hint question
« Reply #2 on: 13 Nov 2003, 15:59:12 »
Hey !

Your script is perfectly correct. It's the line you've typed to add the EH that must be wrong. This line should be :

Code: [Select]
myunit AddEventHandler ["Fired",{_this exec "myscript.sqs"}]
Make sure it's "_this", and no "[]"  ;)


Ig.

Ace Productions

  • Guest
Re:Hint question
« Reply #3 on: 13 Nov 2003, 18:15:42 »
@macguba - sorry for not being very specific.

@igor - lately you have been a great help to many issues. my friend simply thanks a lot.