Jump to content

Home

Scripting problem...


Gabrobot

Recommended Posts

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

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!:confused:

 

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

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

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...