Question about CopyObject and the bCopyLocalState [resolved]
Damonya
Member Posts: 4
Hello,
thanks for adding the bCopyLocalState in the CopyObject function.
I have a question though because I feel like it doesn't work with NW_FLAGs when I try to copy a creature that uses the OnSpawn script using SetSpawnInCondition.
thanks for adding the bCopyLocalState in the CopyObject function.
I have a question though because I feel like it doesn't work with NW_FLAGs when I try to copy a creature that uses the OnSpawn script using SetSpawnInCondition.
Post edited by Damonya on
0
Comments
Just from looking at the description, it sounds like it copies everything. So if a spawn in condition has already ran its course, it will have ran its course on the copied object as well.
It could even be that copying an object like that, does not fire the on spawn script.
Here :
https://nwn.wiki/display/NWN1/1.69
Patch 1.68
Fix to CopyObject() so that copied creatures now run their OnSpawn script.
This is my fault, because i use a hak pak version of the script so my modification was no repercut in game.
I just have to change the name of the script...
I'm bad... Sorry