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 
 
Possess Creature
Goto page Previous  1, 2
 
Post new topic   Reply to topic    nwnx.org Forum Index -> Linux development
View previous topic :: View next topic  
Author Message
Quixsilver



Joined: 20 Jan 2009
Posts: 30

PostPosted: Sun Oct 04, 2009 18:33    Post subject: Reply with quote

Anyone else have trouble with UnPossessCreature or am I just totally missing the correct usage concept here?

Code:

PossessCreature(oPC, oTarget);
DelayCommand(10.0,UnPossessCreature(oPC, oTarget));


This correctly possesses the target creature but the UnPossessCreature call is doing nothing.

Same results when using:
Code:

PossessCreature(oPC, oTarget);
DelayCommand(10.0,UnPossessCreature(oTarget, oPC));
Back to top
View user's profile Send private message
Cyan Bloodbane



Joined: 25 Nov 2005
Posts: 23
Location: Somewhere in Italy

PostPosted: Thu Jan 07, 2010 5:59    Post subject: Reply with quote

If u try to use PossessCreature on the old pc u return back to your character.

I have noticed a strange behaviour when i possess a creature, first is that the creature has level higher then 1 it will automatically level up and if u push the button "Level UP" the server crashes.

The second issue, is that the default event scripts will remain attached to the creature even if u possess it (try a randomwalk on heartbeat).

Im working around by doing this :

- Not allow players to possess creature already got by another player.
- Storing a local object on the creature possessed wich allow to Unpossess back the right pc
- Don't allow players to export the character if they are owning a npc to prevent bic overwriting (im doing this with nwnx events hooking exportsinglecharacter etc).

The only error is caused by Level up and when a player log off, im trying to find out a solution.

Holavez
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    nwnx.org Forum Index -> Linux development All times are GMT + 2 Hours
Goto page Previous  1, 2
Page 2 of 2

 
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