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...')
 
 
Line 1: Line 1:
IsObjectValid does not seem to work properly with GetObjectByTag and custom NPCs. Strangely, stock Bioware creatures do work.
+
FORGET THIS POST!
  
'''This does not work for me with a mod empty of creatures:'''
+
I removed my heartbeat script and used falloutboys and the IsObjectValid started working properly.
  
if(!IsObjectValid(GetObjectByTag("gelda")))
+
Sorry for the confusion.
{
+
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")));
+
}
+

Latest revision as of 06:23, 10 December 2009

FORGET THIS POST!

I removed my heartbeat script and used falloutboys and the IsObjectValid started working properly.

Sorry for the confusion.