Sign in to follow this  
Followers 0
Gatorfade

Editing AI Missions

12 posts in this topic

I have gotten a vehicle to spawn but what do I need to do to make the AI Spawn in the vehicle. This is what I have so far. Also how would I make 2 or 3 at the same mission?

 

//Makes Nonpersistent vehicle
_veh = ['O_G_Offroad_01_armed_F',_pos] call DMS_SpawnNonPersistentVehicle;

Share this post


Link to post
Share on other sites
Advertisement
_vicGroup = 
[
	[(_pos select 0) + 10, (_pos select 1) + 5,-0.2], // position
	EAST, // side
	[
		"O_G_Offroad_01_armed_F" //array of vehicle classnames
	]	
] call BIS_fnc_spawnGroup;

Will spawn an AI vehicle group.

Share this post


Link to post
Share on other sites
_vicGroup = 
[
	[(_pos select 0) + 10, (_pos select 1) + 5,-0.2], // position
	EAST, // side
	[
		"O_G_Offroad_01_armed_F" //array of vehicle classnames
	]	
] call BIS_fnc_spawnGroup;

Will spawn an AI vehicle group.

EDIT: But as for the position of the AI Vehicle Crew, could I just use the "call DMS nonpersistentvehicle" .sqf file to make it spawn with the mission?

At work right now. Thank you in advance though for taking the time to respond and help me out!

Edited by Gatorfade

Share this post


Link to post
Share on other sites

Put multiple vehicles in different groups and separate their position by a few meters, so they don't spawn on top of each other. Learned that the hard way, too. ;)

Share this post


Link to post
Share on other sites

See if you can directly observe them spawning. Hit the editor, put down an object and addAction that line with the new vehicle group, then trigger it and watch what happens.

Share this post


Link to post
Share on other sites
Advertisement

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
Sign in to follow this  
Followers 0

  • Recently Browsing   0 members

    No registered users viewing this page.