Talk:IsObjectValid

From Dragon Age Toolset Wiki
Revision as of 04:57, 10 December 2009 by Georage (Talk | contribs) (Created page with 'IsObjectValid does not seem to work properly with GetObjectByTag and custom NPCs. Strangely, stock Bioware creatures do work. '''This does not work for me with a mod empty of cr...')

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

IsObjectValid does not seem to work properly with GetObjectByTag and custom NPCs. Strangely, stock Bioware creatures do work.

This does not work for me with a mod empty of creatures:

if(!IsObjectValid(GetObjectByTag("gelda"))) { CreateObject(OBJECT_TYPE_CREATURE,R"gelda.utc",GetLocation(GetObjectByTag("wp_ftalk_gelda"))); }

This DOES work for me with a mod empty of creatures but seems backwards:

if(IsObjectValid(GetObjectByTag("gelda"))) { CreateObject(OBJECT_TYPE_CREATURE,R"gelda.utc",GetLocation(GetObjectByTag("wp_ftalk_gelda"))); }

This DOES work for me with a mod empty of creatures and seems normal behavior:

if(!IsObjectValid(GetObjectByTag("werewolf_core"))) { CreateObject(OBJECT_TYPE_CREATURE,R"werewolf_core.utc",GetLocation(GetObjectByTag("wp_ftalk_gelda"))); }