Gabrobot Posted July 19, 2002 Share Posted July 19, 2002 I've got a scripting problem: I have 8 NPCs with the same targetname in my level that I use (the use scripting command kind of use) at one point in a script, and then I try to remove them using the remove command. But it doesn't remove them! This problem is driving me crazy, I've looked at the scripts Raven included, but I can't a figure out what's wrong! Another problem I have, is with BehavEd itself: In the pop down box for the Get thing that's just above the Tag thing in commands like Move or Rotate, it says "Include Error!!!". It says that in the drop down box for the Set, Play and Declare commands as well. Link to comment Share on other sites More sharing options...
Catscratch Posted July 19, 2002 Share Posted July 19, 2002 try using script_targetname for npcs instead of targetname or npc_targetname. Make sure you set the right directories for Behaved. Link to comment Share on other sites More sharing options...
Gabrobot Posted July 22, 2002 Author Share Posted July 22, 2002 try using script_targetname for npcs instead of targetname or npc_targetname. Nope. It doesn't matter what kind of targetname I have, it doesn't work. I don't get it, I have two platforms, one moves the other doesn't. It will remove the platform that doesn't move, but it doesn't remove the one that does move! Make sure you set the right directories for Behaved. I made sure the directories are correct. I only get a include error with some of the pull down boxes, not all of them.(see my first post.) Link to comment Share on other sites More sharing options...
Catscratch Posted July 22, 2002 Share Posted July 22, 2002 Wowow, slow down, i thought you wanted to remove npcs not platforms ? Anyway ive put some npcs (like 5 of them) and i trigger a script with trigger_once. the script does remove the npcs. Maybe your script messes something up before the removing. I dunno i should look at your entire script to see what's wrong. Link to comment Share on other sites More sharing options...
Gabrobot Posted July 23, 2002 Author Share Posted July 23, 2002 I have a feeling that the problem may be that the NPCs are on a moving platform (the same one that refuses to be removed in fact...) and the game engine is picky and won't remove them unless they're not moving. The script is supposed to remove the platform instantly right after it stops at a ref_tag, so perhaps it doesn't like that either... I guess I'll have try that and see if it works... Link to comment Share on other sites More sharing options...
Merritt Posted July 29, 2002 Share Posted July 29, 2002 you get the include error because the sourcefiles path is incorrect - go to prefs and change it to the gamesource folder where your editing tools are installed Link to comment Share on other sites More sharing options...
Gabrobot Posted August 3, 2002 Author Share Posted August 3, 2002 Thanks Merritt, I don't get include errors now. Posted by me: I have a feeling that the problem may be that the NPCs are on a moving platform (the same one that refuses to be removed in fact...) and the game engine is picky and won't remove them unless they're not moving. The script is supposed to remove the platform instantly right after it stops at a ref_tag, so perhaps it doesn't like that either... Well, it didn't work (I didn't think it would) however I have found a work around (which I probably should have done from the beginning) so I don't need to remove anything. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.