My problem is: When I take the key (I can open the door), the key misc_model does not disappear in my map (is not deleted)... What's wrong? Can someone help me?
My problem is: When I take the key (I can open the door), the key misc_model does not disappear in my map (is not deleted)... What's wrong? Can someone help me?
because you use a "misc_model" instead of a "script_model"
if you want to do something with models then you need all times using a script_model. NOT a misc_model.
If you want scripts / features made for you, then contact me by PM or email / skype etc it will cost you tho so if you have no intention of reciprocating don't even waste my time
Irrelevent, that field is entirely unnecesary as myplayer / player is mever referenced, all that argument is, is what you want the user to be defined as, so you can reference that user later
Gamer9294 is correct, misc models cant be referenced by script, you can only access "script_" entities for obvious reasons
As my favorite part of the scripting guide on the wiki states:
Quote
To acquire any ent, it MUST BE SET AS A SCRIPT_MODEL (XMODEL) OR SCRIPT_BRUSHMODEL (BRUSH) IN ORDER TO BE SEEN BY SCRIPT. Read that sentence like 5 times. Maybe 10. Seriously. It's REALLY important that you understand that and that you don't forget it.
And as stated above, they need to be script_ to be acquired by script.
Last Edit: July 19, 2015, 08:18:32 pm by Scobalula
Irrelevent, that field is entirely unnecesary as myplayer / player is mever referenced, all that argument is, is what you want the user to be defined as, so you can reference that user later
Gamer9294 is correct, misc models cant be referenced by script, you can only access "script_" entities for obvious reasons
Yea I noticed that and was going to write that but I figured I'd wait till my first post got approved before I wrote another one haha But thank you for the lesson