Hi all,
I was thinking about objFireEvent for replacing an event that isn't builtin but would have been useful to me : OnObjAttacked on the same template as OnObjDestroyed.
A shortfall of this function is that it dosen't seem to allow arguments to be passed to the event. Would someone have an hint about getting around that ?
objFireEvent able to pass arguments ?
easy,
(objSetData gSource "name" vartopass)
and then
(setq vartorecieve (objGetData gSource "name"))
Depending on what you intend to "pass" you may need to objSetObjRefData, or if you need to save a list of references, then I can give you a function for that as well.
This assumes the event is located on gSource.
(objSetData gSource "name" vartopass)
and then
(setq vartorecieve (objGetData gSource "name"))
Depending on what you intend to "pass" you may need to objSetObjRefData, or if you need to save a list of references, then I can give you a function for that as well.
This assumes the event is located on gSource.