Okay i have spent the past 2 hours trying to fix this stupid script and it is driving me insane. Basically i want some models to appear after players hit the button, the button part is fine but the models has a hand symbol in game here is my script, this is so easy but it is refusing to work.
Here is the pictures in radiant, like i said the button is fine just focus on the dogtags() part
I want to get into scripting but errors like this with no explanation is so annoying
So, the only problem is that the models are showing the "NOICON" symbol? Does the models show or what?
Ya the models show up at the beginning of the game with the "noicon" symbol, but the thing is i want it to show up after the players hit the button thats in the map not before, also even when i hit the buttons it still shows that noicon symbol instead of saying "Press F to collect Dog Tags"
Ya the models show up at the beginning of the game with the "noicon" symbol, but the thing is i want it to show up after the players hit the button thats in the map not before, also even when i hit the buttons it still shows that noicon symbol instead of saying "Press F to collect Dog Tags"
For me it sounds like you are not calling the script in your mapname.gsc Do you have the script called?
For me it sounds like you are not calling the script in your mapname.gsc Do you have the script called?
Ya i called it in both my mapname and zombiemode, also if i didnt call the script at all wouldnt that mean the button wouldnt work either, but the button works its just the dogtags
"Deleted code is debugged code." - Jeff Sickel "Mathematicians stand on each others' shoulders and computer scientists stand on each others' toes." - Richard Hamming
Also tried just using getent and that didnt work either but ill wait for your fix
GetEnt is to get a single entity with a certain targetname, GetEntArray is used to get an array of all entities with a certain targetname. You can't call functions on an array and therefor have to use a for() loop to call it on each entity inside the array.
Well that made the models disappear till you hit the button, but then when the models come back its still a hand symbol and theres only 1 model when i put 10 in the map
Well that made the models disappear till you hit the button, but then when the models come back its still a hand symbol and theres only 1 model when i put 10 in the map
I just noticed you have different targetnames for the dogtags: (I should seriously read through scripts a lil' better next time. xD) And:
I noticed you used GetEnt for the trigger, is there only one trigger to pick up the dogtags or multiple?
Edit: Fixed the models not showing up, realised there was an infinite loop called inside a for() loop:
Edit: Optimized the above script again.
Last Edit: May 14, 2014, 07:39:58 pm by JR-Imagine
I just noticed you have different targetnames for the dogtags: (I should seriously read through scripts a lil' better next time. xD) And:
I noticed you used GetEnt for the trigger, is there only one trigger to pick up the dogtags or multiple?
Theres only 1 trigger to pick up the dog tags but multiple dog tags, if that makes sense. okay nice 2 down 1 more to go, they all appear now, just need to fix the hand symbol
edit: nevermind, saw your edit trying it now
edit again: still back to only showing 1 dogtags and the hand icon is still there
Last Edit: May 14, 2014, 07:38:42 pm by thezombiekilla6
models show up after hitting the button but its still the hand symbol, also to note, the spin thread not working either but may fix that after the hand symbol goes away.
Edit: tried the latest one and still same thing. PHIL if your out there we may need you Post Merge: May 14, 2014, 07:50:03 pmwait, since theres 10 dogtags and 10 triggers one for each one, shouldnt the dogtags_trig be a getentarray too? i know you asked me that before but i thought you meant multiple for just 1 dog tag not multiple as in all triggers the same
Last Edit: May 14, 2014, 07:50:55 pm by thezombiekilla6