Sign in to follow this  
Followers 0
Sleepy Joe

DMS + Occupation, Second Transport Vehicle?

5 posts in this topic

hi, any one knows how to make run 2x player transport? Was there any where a thread about, i did not found anything. Occ is amazing! But what would be the problem to make 2 transports running... with call BIS_fnc_selectRandom; or even without? I was thinking to try DAA airports mod.. but why using a mod if you could get it with Occupation?

Any info about to run more then one player transport at the same time? Like using select instead of selectRandom?

Long story short, i have never seen any scripts or c++ commands until this exile forums here. Means like, since 3 weeks. Since i am trying to run a server. 

Share this post


Link to post
Share on other sites

Hey @Sleepy Joe

Just spawn another vehicle in @ExileServer\addons\a3_exile_occupation\scripts\occupationTransport.sqf

Copy & paste this code twice should do it:

Spoiler

        // Spawn Vehicle

        if(_transportType == "heli") then
        {
            _transport = createVehicle [SC_occupyTransportClassToUse, _spawnLocation, [], 0, "NONE"];
            _transport setVehiclePosition [_spawnLocation, [], 0, "FLY"];
            _transport setVariable ["vehicleID", _spawnLocation, true];  
            _transport setFuel 1;
            _transport setDamage 0;
            _transport engineOn true;
            _transport flyInHeight 300;    
        }
        else
        {
            _transport = createVehicle [SC_occupyTransportClassToUse, _spawnLocation, [], 0, "CAN_COLLIDE"];    
        };

        sleep 0.2;

 

1 person likes this

Share this post


Link to post
Share on other sites
Advertisement

@aussie battler thansk for the answer. I'll try this one in a bit.

@Auoryus I was thinking the same, why not a bus and a chopper. Cuz of the selectRandom, you have to decide beetwin heli or land.. I am not sure about how to handle this right cuz this is not my script and yea. 

Share this post


Link to post
Share on other sites

You could edit the @ExileServer\addons\a3_exile_occupation\ config.sqf line 114

Spoiler

SC_occupyTransportClass         = ["Exile_Chopper_Orca_BlackCustom","Exile_Car_LandRover_Green"]; 

If that doesnt work, add this code as well:

 in @ExileServer\addons\a3_exile_occupation\scripts\occupationTransport.sqf

Copy & paste this code twice should do it:

Spoiler

   // Spawn Vehicle

        if(_transportType == "heli") then
        {
            _transport = createVehicle [SC_occupyTransportClassToUse, _spawnLocation, [], 0, "NONE"];
            _transport setVehiclePosition [_spawnLocation, [], 0, "FLY"];
            _transport setVariable ["vehicleID", _spawnLocation, true];  
            _transport setFuel 1;
            _transport setDamage 0;
            _transport engineOn true;
            _transport flyInHeight 300;    
        }
        else
        {
            _transport = createVehicle [SC_occupyTransportClassToUse, _spawnLocation, [], 0, "CAN_COLLIDE"];    
        };

        sleep 0.2;

 

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.