GodBeastX
Joined: 09 Aug 2006 Posts: 65
|
Posted: Tue Aug 19, 2008 5:10 Post subject: xp_ondestroy - Hooking Objects being Destroyed for Scripts |
|
|
Thanks to input from Skywing (I gotta give him props, he was alot of help) I got this mug done and working.
This will allow a script to be called when an object is destroyed by any means. OBJECT_SELF will be the destroyed object and script functions obviously can interact with it (Such as GetObjectType hint hint).
I made this for future plans to make an insane AI system using NWNX and extended data. I had to be absolutely sure when creatures were destroyed, the AI data would get cleaned up, so this plugin was step 1.
This will ONLY work with 1.13 version of the server and compiled for 1.08 NWNX.
Source code isn't very epic but if you want it you can request.
http://www.necrosisonline.com/downloads/xp_ondestroy.zip |
|