logo logo

 Back to main page

The NWNX Community Forum

 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
xp_ondestroy - Hooking Objects being Destroyed for Scripts

 
Post new topic   Reply to topic    nwnx.org Forum Index -> Development
View previous topic :: View next topic  
Author Message
GodBeastX



Joined: 09 Aug 2006
Posts: 65

PostPosted: Tue Aug 19, 2008 5:10    Post subject: xp_ondestroy - Hooking Objects being Destroyed for Scripts Reply with quote

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
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    nwnx.org Forum Index -> Development All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group