Jump to content
Sign in to follow this  
xXCOOKI3MONS7ERXx

Random Vehicle/Weapon Crate script

Recommended Posts

I Have Look In Lot Of Places, But I Cannot Manage To Find A Script That Spawns Vehicles And Weapon Crates Randomly. I Would Really Appreciate It If I Can Get A Script Like That, I Am Trying To Make A Survival Mission, And I Need It.

Share this post


Link to post
Share on other sites

Im also looking for a mission script to accomplish this.

Hence why Im reviving this thread rather than start a new one.

EDIT: Oh shoot this is for Arma 2. I wanted for Arma 3. Whoops.

Share this post


Link to post
Share on other sites

This is a sneaky way to spawn a vehicle.

Place a vehicle on the edge of the map. In a place somewhere out of the way where it cannot get in your way.

Name the vehicle car1.

Now place a box on the map and name it box1. The box is somewhere along the path of your journey.

Place a trigger over the box. You enter the trigger and the trigger fires.

In the On Act field of the trigger write:

car1 setpos (getpos box1);

You enter the trigger area, the trigger fires and the car magically appears over box 1 - directly in front of you!

Once you have found that this works, the box gets stuck under the car and you cannot drive away. So, in the init of the box type: hideobject this; . . . . and the box is now invisible and in effect has disappeared.

Now, you can of course place 10 triggers on the map. Each trigger has a box inside named box1 to box 10. Hey presto the car can now appear at one of 10 places!

As for weapon crates - well do the same thing!

.

.

Edited by Joe98

Share this post


Link to post
Share on other sites

Why so complicated?

Just place the car on the map, place few empty markers on the map, group the car with the markers. the car will spawn randomly on one of the markers, or its initial possition every tyme you start the mission. so if you place the car and 5 markers, you have 6 possible places where the car can spawn.

Picture with empty markers:

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×