Join our Discord Channels!
Join our Steam Groups! Image TacBF Mod & TacBF Event Notifications.
@CBA_A3 & TacBF updated. | Get TacBF Launcher!
Recent updates applied: @CBA_A3 3.3.1-170504, @TacBF 3.24.10. (13 May 2017)
Image $ Please donate a little, to keep server. - Read more...

Missions: Object Modifier Variables

Find mission references here, plus ask any questions about mission making here.
User avatar
Dr_Eyeball
Dev & Site Manager
Dev & Site Manager
Posts: 1358
Joined: 08 Feb 2013, 13:44
In-game Name: Dr_Eyeball

Missions: Object Modifier Variables

Postby Dr_Eyeball » 09 Jul 2014, 13:30

I will start to maintain a list of Object Modifier Variables in this topic.

Vehicles:
  1. this setVariable ["ICE_spawn_zones", [1,-5,6]];
      Specify an array of which zone "sides" to check to spawn vehicle here.
      Each (whole) number (including negative ones) represent a zone index from the ZoneList array.
      Negative number means you should NOT own that zone.
      All conditions must be fulfilled to enable spawn
      It could be handy if vehicle is remote and away from any zone or even at the base.
  2. this setVariable ["ICE_spawn_players_count", 12];
      Only spawn vehicle after sufficient players join that side. Eg: spawn tank if minimum count of side players for west/east > 12
  3. this setVariable ["ICE_spawn_players_max", 20];
      Only spawn vehicle below player count on that side. Eg: spawn tank if maximum count of side players for west/east < 20
      This will be avaiable from v3.9+.
      Eg: switch an APC spawn for a Tank spawn. In this case you would set the tank spawn at minimum 30 and the APC spawn at maximum 30. Then once you reach 30 the APC will not respawn and the tank will.
  4. this setVariable ["ICE_respawn_limit", 4];
      Only respawn vehicle selected number of times, (which includes zero times). Eg: spawn jet 3 times only
  5. this setVariable ["ICE_spawn_delay", 3];
      Delay the initial spawn of the vehicle for the given duration (First spawn is in 3 minutes after server starts, instead of immediately at start.)
  6. this setVariable ["ICE_spawn_respawn", 5];
      Override respawn time for vehicle (Respawns in 5 minutes, instead of normal setting. Minimum 4 minutes) (v3.9+)
  7. this setVariable ["ICE_spawn_abandoned", 10];
      Override 'abandoned' time. Vehicle despawns after half this time and spawns back at the full time. (v3.9+)
  8. this setVariable ["ICE_crewmenCountRequired", 0];
      Disables needing a driver and/or commander to be in gunner seat for armor (Can use for artillery). (v3.9+)
  9. this setVariable ["ICE_respawn_equivalent", ["UAZ_MG_INS", "WMIK_camo_MG"]];
      N.B: array order is [east,west]
      Opposite/equivalent vehicle should respawn depending on which side holds zone, but nothing will spawn if neither side holds it.
      Warning: use of "ICE_respawn_equivalent" is incompatible with most of the other zone-dependent object variables.
  10. this setVariable ["ICE_spawn_resistance_nearby", 200];
      This is still WIP as of 3.8.1, WIP as of 3.12.0
      Only spawn vehicle if resistance faction has some permanent presence nearby, like a HO/TE/cache.

Spawnpoints (RPs, HOs, Team RPs, FOs):
  • this setVariable ["TB_HO_tickets", 50];
      Sets the amount of tickets on a preplaced spawnpoint. Is used for team rally points also.
  • this setVariable ["TB_TRP_timer", 14];
      Sets the duration a team rally point can be used. (Starts countdown at mission start)

CamoNets on Armaments/Supplies:
  • this setVariable ["TB_addCamo", false];
      Supplies have a camoNet by default. Use this to remove the camoNet.

Deploy Markers:
Mission developers can use markers in mission editor to add extra deployment range from that point for SRPs/HOs/FOs.

The following marker names can be used, where:
  • side tag is `east` or `west`,
  • the number tag can be 1 or higher, (ensuring numbers are sequential and start from 1):
Examples:
  • "SRP_west_deploy_1"
  • "SRP_east_deploy_3"
  • "HO_west_deploy_2"
  • "HO_east_deploy_1"
  • "FO_west_deploy_3"
  • "FO_east_deploy_2"


Cargo Supply Containers:
  • this setVariable ["TB_replenishCheckDuration", 15]; // uses minutes
      Use this to change the default replenishment period.

      These supply types have a 15 minute replenishment period by default:
      • Forward Outpost Containers Supply
      • Static Weapon Crates Supply
      • Artillery Ammo Supply
      • Base_WarfareBVehicleServicePoint
      • Helicopter Supplies
      These supply types have a 10 minute replenishment period by default:
      • Armaments Box
      • Resistance Cache
      • Cache
      These supply types have a 3 minute replenishment period by default:
      • Vehicle Supply // eg: ATV supply

Cargo Objects:
  • this setVariable ["ICE_cargo_transportable_PV", false];
      Either allow/prevent an object or cargo box to be transported by carrying or loading on vehicles.
      Note: Unsuitable for objects which are not known to TacBF, since vehicle/carry alignments might be vastly misaligned.
Image Dr Eyeball - TacBF Dev
Somebody once said that in looking for people to hire, you look for three qualities: integrity, intelligence, and energy.
And if you don’t have the first, the other two will kill you.
” Warren Buffett

User avatar
Diabolical
Ranked
Ranked
Posts: 84
Joined: 08 Dec 2013, 07:11
In-game Name:
Location: Australia SA

Re: Missions: Object Modifier Variables

Postby Diabolical » 06 Aug 2014, 13:23

can anybody off the top of their head remember the variable that removes camo nets from base supply points? (armament crates, FO suppy etc)

User avatar
leon
Admin
Admin
Posts: 1091
Joined: 28 Jul 2013, 10:06
In-game Name:

Re: Missions: Object Modifier Variables

Postby leon » 06 Aug 2014, 18:33

Not from the top of my head, but here it is:

Code: Select all

 this setVariable ["TB_addCamo", false];

Enjoy!
Everything I say is my personal opinion, and is not representative of TacBF team's opinion in any way.

Image

Cole
Community Member
Community Member
Posts: 364
Joined: 25 Feb 2015, 18:17
In-game Name: Cole

Re: Missions: Object Modifier Variables

Postby Cole » 19 May 2015, 17:26

Prevent Static from being moved:

Code: Select all

this setVariable ["ICE_cargo_transportable_PV", false]

Prevent large statics from being towed (ZSU, D30 etc.) **Adanteh adding in next version (3.13?)

Code: Select all

this setVariable ["ICE_cargo_towable", false];

Schadler17
Global Moderator
Global Moderator
Posts: 1180
Joined: 16 May 2015, 13:26
In-game Name: Schadler17

Re: Missions: Object Modifier Variables

Postby Schadler17 » 13 Jul 2015, 16:52

Any way to add a timer to spawn a vehicle after the mission starts?
Do I care if you hate me? Do you wanna know the truth?
C'est la vie, adios, good riddance, f*** you.

Adanteh
Admin
Admin
Posts: 1502
Joined: 15 Sep 2013, 15:43
In-game Name:

Re: Missions: Object Modifier Variables

Postby Adanteh » 13 Jul 2015, 18:19

Schadler17 wrote:Any way to add a timer to spawn a vehicle after the mission starts?

_firstSpawn_delay = _vehicle getVariable ["ICE_spawn_delay", 0]; // minutes

Schadler17
Global Moderator
Global Moderator
Posts: 1180
Joined: 16 May 2015, 13:26
In-game Name: Schadler17

Re: Missions: Object Modifier Variables

Postby Schadler17 » 13 Jul 2015, 20:32

Adanteh wrote:_firstSpawn_delay = _vehicle getVariable ["ICE_spawn_delay", 0]; // minutes

Into the vehicle's init?

Adanteh
Admin
Admin
Posts: 1502
Joined: 15 Sep 2013, 15:43
In-game Name:

Re: Missions: Object Modifier Variables

Postby Adanteh » 13 Jul 2015, 20:33

Code: Select all

this setVariable ["ICE_spawn_delay", 3];

into the vehicles init :D

Edit: (Dr_Eyeball) Added this info to first post.

Kopove
Newb
Newb
Posts: 1
Joined: 06 Oct 2016, 07:49
In-game Name:

Re: Missions: Object Modifier Variables

Postby Kopove » 10 Oct 2016, 10:36

Before developers information comes, or is it just you?

 Admin:  Unsure what this is asking.

User avatar
Dr_Eyeball
Dev & Site Manager
Dev & Site Manager
Posts: 1358
Joined: 08 Feb 2013, 13:44
In-game Name: Dr_Eyeball

Re: Missions: Object Modifier Variables

Postby Dr_Eyeball » 18 Feb 2017, 03:38

Added variables for:
- Cargo Supply Containers
- Cargo Objects


Return to “Mission Creation Advice”

Who is online

Users browsing this forum: No registered users and 1 guest

cron