Forum Jump :

Author Message


Posts: 16
Rank:


Level: Member

Country: us
Location:
Occupation:
Age:
In-game name:

 
#1 Posted at 2015-05-25 14:05        
     
I've tried searching for this, but haven't been able to find anything that is even close to what I'm looking for. I am working on making a shooting range of sorts, and I'm trying to spawn targets dynamically. Is there a way to spawn targets, in a row, between two markers, or maybe inside the area of trigger? What I want to do is have the targets lined up, fairly straight, with the ability to set specific distances between each. Like 50m intervals, or 100m intervals, from the shooter. Also, do it in such a way that I could just place two markers or a single trigger, and not have to worry about the angle of placement or anything like that. Any help would be much appreciated!


Author Message

Joe98  



Posts: 12
Rank:


Level: Member

Country: au
Location:
Occupation:
Age:
In-game name:

 
#2 Posted at 2015-05-30 00:16        
     
Place a sandbag wall on the map and name it box1. Place a pop up target on the map and name it target1

We want the target to be EXACTLY 100 meters to the south of the sandbags so we type this into the target init field.

target1 setPos [(getPos box1 select 0) +0, (getPos box1 select 1) -100];

Now place a second sandbag wall on the map and a second target on the map and name then box2 and target2. We want the second target to be EXACTLY 200 meters to the south of the sandbags:

target2 setPos [(getPos box1 select 0) +0, (getPos box1 select 1) -200];

When you start the mission, the 2 targets will be just where you want them.


Now select Empty - Ammo and place all the ammo boxes on the map. You can now walk around and pick up any weapon and test it at any range.


Advertisement


Author Message


Posts: 16
Rank:


Level: Member

Country: us
Location:
Occupation:
Age:
In-game name:

 
#3 Posted at 2015-05-30 19:23        
     
Thank you, Joe98, for your reply, but I'm looking for something a bit more automated. I've found something else that might work for what I'm trying to do, but I have to mess around with it when I have some time first.