Difference between revisions of "Talk:IsObjectValid"

From Dragon Age Toolset Wiki
Jump to: navigation, search
(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...')
(No difference)

Revision as of 04:57, 10 December 2009

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"))); }