Jump to content
Sign in to follow this  
Jonnerz

Basic vehicle spawner

Recommended Posts

I am creating a flagpole that spawns vehicles.

So far in-game the Init for the flagpole is:

this addAction ["Tractor", "create_vehicle.sqs"];

And in "create_vehicle.sqs" I have:

"tractor" createVehicle (position player);

I want to make it so I can add more actions to the flagpole that spawn different vehicles but all within one .sqs.

I am new to this sort of scripting as you can tell.

Thanks.

Share this post


Link to post
Share on other sites

Well i am not the best at scripting but you would need to put that command line in a trigger activated by anyboy for instance and then the script would have something like

_car = _this select 0
_veh = createVehicle [_car, position player, [], 0] 

something like that you have to tweak it. Wiki http://community.bistudio.com/wiki/createVehicle_array

again this is off the top of my head but that should get you started. Also search ofpec.com

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  

×