I have a map in which the player teleports to a room that I put under the map, but in the game, the models pop in and out of view when the player moves around. Anyone know what could be causing this?
You would have to make sure that the door is either a script model or a script brushmodel and is named "door" for its target name and each of the triggers are named "trigger1", "trigger2", and "trigger3" in the targetname. If you want you could change the names but they have to correspond in radiant and the script. I included a clip in there in case you use a model for the door instead of a brushmodel as models are non collidable and can be walked through without a clip. Make sure the clip covers the entire door so players can't walk through it.
If you choose to you can rotate the door instead of deleting it by using RotateYaw([angle], [time for rotation]) instead of Delete(), but I won't get into that you can just look it up. JBird has some tutorials on doors and rotations on youtube.
That didn't work either for some reason. I looked at the docs and I couldn't find anything else besides GetAiArray(name, key) which worked for zombies using GetAiArray("zombie", "targetname") But I couldn't find anyway to do that with dogs.
I'm trying to check whether a variable is a multiple of 360. I'm just printing to screen the following
level.mHand % 360
but I don't get anything showing up. If I change the operator to a multiplication sign and multiply by 2 for example, it works. If I change the variable to any other number instead of a variable, it works, but it seems that using modulus with a variable doesn't work for some reason and I was wondering if anyone had a solution. Any help is appreciated.
7 years ago
Loading ...
New version available!
All running pages of UGX-Mods need to be reloaded for your best experience. Be sure that you finish all your work before updating!