Jump to content
Sign in to follow this  
Rollirouland

SP/ Full AI Vehicle

Recommended Posts

Just select it from under Side = BLUFOR/OPFOR/INDEPENDENT or CIVILIAN and not from Side = Empty. It'll have appropriate crew in it when placed like that.

Share this post


Link to post
Share on other sites

If you want to fill a vehicles empty slots using scripting you must name your vehicle. Then spawn a group of units and give the group this code

private ["_vehicle","_grp"];

_vehicle = VEHICLENAME;
_grp = GROUPNAME;


{_x moveincargo _vehicle}foreach units _grp;

Share this post


Link to post
Share on other sites

Oh, is that what he meant? You could also group units with the vehicle and set the Unit's "Special" field to "In Cargo". Or use BangaBob's idea from a group leader init via:

{_x moveInCargo vehiclename} forEach units group this;

Where vehiclename is the name of the vehicle.

Share this post


Link to post
Share on other sites

Just wish the trawler was more useful, pilotable and walk-around-on-able. That would be awesome for water rescues.

Share this post


Link to post
Share on other sites

Before I open a new Thread just a second small question :)

Is there any possibility to give a "find cover Waypoint" or something similar?

Share this post


Link to post
Share on other sites
Just wish the trawler was more useful, pilotable and walk-around-on-able. That would be awesome for water rescues.

Please see this post with video --> http://forums.bistudio.com/showthread.php?172849-Driving-the-Arma3-Trawler-with-submarine-demo

Just a simple work-around but maybe someone will find it useful.

Use THIRD PERSON VIEW for driving the Trawler.

//////////////////////////////////////////////////////////////
// BlackOpsMercenaries Special Forces [bOMSF]
// http://www.bomsf.com
// BOMSF Scripts
// cobra@bomsf.com
// Trawler Mgmt System
//
// In the mission editor, Place the trawler, speedboat, and submarine near each other.
// Name each in the editor as below or change to your specifications.
//
// Then in your mission init.sqf place the following line (code):
// [] spawn compile preprocessFileLineNumbers "trawler.sqf"; // -->  (this file or code)
// 
// modify the actions as you desire, experiment to improve
//////////////////////////////////////////////////////////////

/// Trawler Ini
trawler1 attachTo [rib1,[0,9,2.5]]; 
trawler1 addAction ["Board Ship as Driver",{player moveInDriver rib1;}, [], 3, false, true, ""]; 
trawler1 addAction ["Board Ship as Cargo",{player moveInCargo rib1;}, [], 3, false, true, ""];
trawler1 addAction ["Get In Sub as Driver",{player moveInDriver sub1;}, [], 3, false, true, ""];
trawler1 addAction ["Get In Sub as Gunner",{player moveInGunner sub1;}, [], 3, false, true, ""];
trawler1 addAction ["Get In Sub as Cargo",{player moveInCargo sub1;}, [], 3, false, true, ""];
/// SpeedBoat Ini
rib1 lockturret [[0,0],true]; //this locks the commander 
rib1 lockturret [[0],true]; //this locks the gunner  
rib1 addAction ["Detach Sub",{detach sub1;}, [], 3, false, true, ""]; 
rib1 addAction ["Attach Sub",{sub1 attachTo [rib1,[0,-8,2]];}, [], 3, false, true, ""];
/// Submarine Ini
sub1 attachTo [rib1,[0,-8,2]]; 
sub1 addAction ["Attach to Ship",{sub1 attachTo [rib1,[0,-8,2]];}, [], 3, false, true, ""]; 
sub1 addAction ["Detach from Ship",{detach sub1;}, [], 3, false, true, ""];
sub1 addAction ["Get In Sub as Driver",{player moveInDriver sub1;}, [], 3, false, true, ""];
sub1 addAction ["Get In Sub as Gunner",{player moveInGunner sub1;}, [], 3, false, true, ""];
sub1 addAction ["Get In Sub as Cargo",{player moveInCargo sub1;}, [], 3, false, true, ""];

Edited by tomturner

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  

×