View previous topic :: View next topic |
Author |
Message |
Quixsilver
Joined: 20 Jan 2009 Posts: 30
|
Posted: Sun Oct 04, 2009 18:33 Post subject: |
|
|
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 |
|
|
Cyan Bloodbane
Joined: 25 Nov 2005 Posts: 23 Location: Somewhere in Italy
|
Posted: Thu Jan 07, 2010 5:59 Post subject: |
|
|
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 |
|
|
|
|
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
|