Home   Help Search Login Register  

Author Topic: Event Handlers questions.  (Read 1611 times)

0 Members and 1 Guest are viewing this topic.

ofp..hahha

  • Guest
Event Handlers questions.
« on: 01 Dec 2002, 22:23:23 »
Ok guys for a long time now people havent known about using event handlers in there cpp but i would like to know how to use them and maybe start a sticky for a compilation of them for other people to use. I would like a Example or some input on a event handler for damage like in the ah-1 cobra how the light blinks and the sound goes off when you are damaged so please put what you know about this and snippets in this topic.

thx  :P

Offline MidShip

  • Members
  • *
  • I'm a llama!
Re:Event Handlers questions.
« Reply #1 on: 02 Dec 2002, 13:43:36 »
It's described in the official comref (Item Scripting Topics).

ofp..hahha

  • Guest
Re:Event Handlers questions.
« Reply #2 on: 02 Dec 2002, 23:21:19 »
no thats not what i want that tells me nothing im talking about HOW? they do it, what does the script look like?

Offline MidShip

  • Members
  • *
  • I'm a llama!
Re:Event Handlers questions.
« Reply #3 on: 03 Dec 2002, 14:38:31 »
Have made a small template. Maybe it helps more. All is packed in a small .pbo you have to depbo.

ofp..hahha

  • Guest
Re:Event Handlers questions.
« Reply #4 on: 03 Dec 2002, 23:21:40 »
Yeah but i dont want it for the gear i want things like the light blinks in the cockpit if you are damaged just like in the ah-1 cobra.

Offline MidShip

  • Members
  • *
  • I'm a llama!
Re:Event Handlers questions.
« Reply #5 on: 07 Dec 2002, 15:27:07 »
Let the event handler of your choice (init, killed etc. (comref)) invoke the setObjectTexture statement, to toggle the textures for simulating blinking lights (see the position lights on the jpg of the template craft). For night effects, do use the proper vetices lightning.