Jump to content

Ok new scripting challenge to figure out!


Recommended Posts

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

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...