PK_Azlon Posted February 14, 2014 Share Posted February 14, 2014 I want to create shooting range targets hanging from the ceiling that flip up 90 degrees when shot, wait a few seconds then flip back to the starting position. I Have a basic understanding of the rotation part, but what I don't know is how to trigger the rotation when the target is shot. Link to comment
MoonDog Posted February 14, 2014 Share Posted February 14, 2014 How many times do you want them to flip back down after being shot? Do you want the range to be resettable at any point in time? Doing what you are asking in itself is simple, but adding in diversity and accounting for player choice complicates the matter a bit. Link to comment
eezstreet Posted February 14, 2014 Share Posted February 14, 2014 You could make it into a func_door, giving it health values and no movement and a script_targetname. The func_door would target a target_scriptrunner which in turn performs the rotating on the door using an affect() block (I think).I think func_static might have a health value too, but not sure. Link to comment
PK_Azlon Posted February 14, 2014 Author Share Posted February 14, 2014 Thanks for the replies. I'll look into it and get back to you. Link to comment
PK_Azlon Posted February 14, 2014 Author Share Posted February 14, 2014 Umm, @eezstreet how do I set the func_door with no movement? Link to comment
Boothand Posted February 15, 2014 Share Posted February 15, 2014 Umm, @eezstreet how do I set the func_door with no movement? You could maybe go with a func_usable instead with the always_on spawnflag. Give it health "-1", usescript "folder/script" and a script_targetname. Func_static doesn't seem to work with health when I tested it. Link to comment
PK_Azlon Posted February 15, 2014 Author Share Posted February 15, 2014 Ok I tried the func_useable with these settings. It flips up and stays that way. It doesn't run the rest of the script (wait 4 seconds and then flip back down). Link to comment
mrwonko Posted February 15, 2014 Share Posted February 15, 2014 Ok I tried the func_useable with these settings. It flips up and stays that way. It doesn't run the rest of the script (wait 4 seconds and then flip back down).That must be the script's fault. Link to comment
PK_Azlon Posted February 15, 2014 Author Share Posted February 15, 2014 That must be the script's fault.It flips back down when I use a func_door so I doubt that. Link to comment
mrwonko Posted February 15, 2014 Share Posted February 15, 2014 Well until you post an example we'll never know... PK_Azlon likes this Link to comment
PK_Azlon Posted February 15, 2014 Author Share Posted February 15, 2014 http://jkhub.org/topic/3619-flip-up-target/ Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now