Custom Shooting Range

Post » Fri Nov 18, 2011 2:11 pm

I am trying to make a target that resets or activates on being shot. I started using a dinner plate that disables on being shot, and that works fine. My problem is trying to get the plate to reappear(enable) after about 10 seconds. After messing around trying diff things, I thought I could just use a light fixture that turns on or off when hit. Nothing I have done works. I had plans on posting one of the scripts I tried but I have tried so many things and tried them approaching this problem from many different angles, but nothing seems to work. The only thing I have gotten to work is that I can get the dinner plate to dissapear(disable) on being shot.

My original idea was to have a timer on the plate that makes it reapear after ten seconds.
I tried using a switch to reset the target(s).
Thought about using a terminal as well, but I cant get anything to work properly.

I had thought this would be a simple script I could add to a dinner plate. But I am no expert on scripts(tho I have had some complicated ones in the past work fine), and I have no real world expereince outside of fallout modding which I have learned completely on my own with trial and error and breaking down other scripts trying to learn thier secrets.

Any hints/advice would be greatly appreciated.
User avatar
NAkeshIa BENNETT
 
Posts: 3519
Joined: Fri Jun 16, 2006 12:23 pm

Post » Fri Nov 18, 2011 2:22 pm

In my shooting range, I have three milk bottles that are persistent named objects (MBTarget1, etc). After placing them, I jotted down their positions and rotation. Then I created a wall switch activator to reset them. The activator uses the following script and places the bottles back in position after being shot to hell.

scn xMoTargetResetBEGIN OnActivateMBTarget1.SetAngle X 0MBTarget1.SetAngle Y 0MBTarget1.SetAngle Z 0MBTarget1.SetPos X -2745.3909MBTarget1.SetPos Y 7488.3442MBTarget1.SetPos Z 15258.3438MBTarget2.SetAngle X 0MBTarget2.SetAngle Y 0MBTarget2.SetAngle Z 0MBTarget2.SetPos X -2743.8784MBTarget2.SetPos Y 7464.4629MBTarget2.SetPos Z 15258.3438MBTarget3.SetAngle X 0MBTarget3.SetAngle Y 0MBTarget3.SetAngle Z 0MBTarget3.SetPos X -2744.2549MBTarget3.SetPos Y 7441.9756MBTarget3.SetPos Z 15258.3438Playsound ITMBottleUPEND

User avatar
luis ortiz
 
Posts: 3355
Joined: Sun Oct 07, 2007 8:21 pm


Return to Fallout: New Vegas