OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Blanco on 11 Jul 2003, 18:00:04

Title: remove EH
Post by: Blanco on 11 Jul 2003, 18:00:04
Thx to Igor Drukov the eventhandlers are very clear now!

look at http://www.ofpec.com/editors/list.php?show=pending

But to remove an EH...

Joe removeeventhandler ["fired",0]

What the 0?

An ID?

Title: Re:remove EH
Post by: Tomb on 11 Jul 2003, 19:40:42
 :) Format of EH is [type,index].
As per comRef, Index is returned by addEventHandler. So, when any handler is removed,
all handler indices higher that the deleted one should be decremented.  :-*


      what is yer probby?  ??? :)
Title: Re:remove EH
Post by: Rubble_Maker on 11 Jul 2003, 19:41:20
Its the index returned by the AddEventhandler function. This is all in the official command reference!
Title: Re:remove EH
Post by: Blanco on 11 Jul 2003, 21:01:30
O... it's that simple?

Thx;