So i have a little shootable easter egg teddy on my map. I can shoot it, and everything works. But the model will not delete. Please tell me what im doing wrong (the script isn't very good since im new to scripting).
So i have a little shootable easter egg teddy on my map. I can shoot it, and everything works. But the model will not delete. Please tell me what im doing wrong (the script isn't very good since im new to scripting).
I have also tried teddyModel delete();
When making shootable's you should make the trigger or the model the target of the other. For instance, if you delete the targetname of the teddy, and deselect it. Then select the trigger, and then select the teddy again, and then press w, it will setup a auto#.
This will prevent you from having multiple entities with the same kvp, which is possibly what is happening here, or you have a typo, or your teddy isn't a script_model. You then would modify your script as such:
If there will only be one teddy, then this is fine, but if multiple teddies were to be used, I would start modifying this script like this:
On a side note, you say your making a shootable ee, but your setting up a hintstring?
Last Edit: November 27, 2016, 04:06:52 am by MakeCents
Oh i thought hintstrings were required lol. Thanks for your help too. Double Post Merge: November 27, 2016, 11:29:02 pmOh and also are you saying that the script should work, but i mispelled or did something in radiant wrong? Double Post Merge: November 27, 2016, 11:56:54 pmOH MY GOD IM STUPID. I made a misc model, not a script model... derp
Last Edit: November 27, 2016, 11:56:54 pm by Deminate