Jump to content
Sign in to follow this  
nullrick

Script for consistant vehicle skin?

Recommended Posts

Like the Offroad trucks and other civ vehicles, there are several different skins with different color schemes and designs.

How could I make, or is there even a script that would allow me to place down a vehicle in the editor, like the new M-900 civ helos in the latest dev branch, and with every restart of the mission have a consistantly recuring skin for the helo?

Share this post


Link to post
Share on other sites

this setVariable ["BIS_enableRandomization",false]; // default texture 

---------- Post added at 20:30 ---------- Previous post was at 20:24 ----------

Or set the vehicle's (custom) texture at mission start with setObjectTextureGlobal.

Share this post


Link to post
Share on other sites
Like the Offroad trucks and other civ vehicles, there are several different skins with different color schemes and designs.

How could I make, or is there even a script that would allow me to place down a vehicle in the editor, like the new M-900 civ helos in the latest dev branch, and with every restart of the mission have a consistantly recuring skin for the helo?

From https://community.bistudio.com/wiki/Arma_3_CfgVehicles_CIV for C_Offroad_01_F

Randomization: Yes, 6 skins, disabled by: this setVariable ["BIS_enableRandomization",false];

Specific skin may be set by: this setVariable ["color",X]; (the number ranges from 0 to 5)

Camo selections: 2 - the body, wheels and accessories

Script door sources: None

Script animations: HideDoor1, HideDoor2, HideDoor3, HidePolice, HideServices, HideBackpacks, HideBumper1, HideBumper2, HideConstruction

Executed scripts: \A3\soft_F\Offroad_01\scripts\randomize.sqf

Firing from vehicles: Positions 2 to 5

Slingload: Slingloadable

Cargo proxy indexes: 1 to 5

This is for M-900 C_Heli_Light_01_civil_F

Randomization: Yes, 15 skins, disabled by: this setVariable ["BIS_enableRandomization",false];

Specific skin may be set by: this setVariable ["color",X]; (the number ranges from 0 to 14)

Camo selections: 1 - the whole exterior

Script door sources: DoorL_Front_Open, DoorR_Front_Open, DoorL_Back_Open, DoorR_Back_Open

Script animations: AddDoors, AddBackseats, AddTread

Executed scripts: \A3\Air_F_Heli\Heli_Light_01\scripts\randomize.sqf

Firing from vehicles: No

Slingload: Slingloads up to 500 kg

Cargo proxy indexes: 11, 10

Edited by Killzone_Kid

Share this post


Link to post
Share on other sites

Thanks for all the help! Are any of these supposed to work with other vehicles as well? For instance, the Huron? I see it only has the two green or black camos/skins.

Shouldn't the "" this setVariable ["color",1-2]; "" work? It's not if it is supposed to.

Share this post


Link to post
Share on other sites
Thanks for all the help! Are any of these supposed to work with other vehicles as well? For instance, the Huron? I see it only has the two green or black camos/skins.

Shouldn't the "" this setVariable ["color",1-2]; "" work? It's not if it is supposed to.

In programming everything starts at 0, not 1, could be part of the issue.

So it would be:

this setVariable ["color", 0-1];

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  

×