Assault Equipment

The assault_equipment container object lists battle_vehicle objects that represent vehicles on the battlefield. An assault_equipment list may be retrieved from the battle object by calling battle:assault_equipment.

Loaded in Campaign Loaded in Campaign
Loaded in Battle Loaded in Battle
Loaded in Frontend Loaded in Frontend
Back to top

Functionality

assault_equipment:vehicle_count()

Returns the number of vehicles in the collection.

Returns:

  1. number count

assault_equipment:vehicle_item(number index)

Returns the vehicles at the specified index value in the collection.

Parameters:

1

number

index

Returns:

  1. battle_vehicle vehicle

Vehicle

Vehicle objects represent vehicles on the battlefield, such as battering rams or siege towers. Vehicle objects can be retrieved from the battle_assault_equipment list, which itself is retrieved from the battle object.

Back to top

Functionality

vehicle:vehicle_key()

Returns the key of the vehicle type, from the battlefield_siege_vehicles table.

Returns:

  1. string vehicle key

vehicle:position()

Returns the position of the vehicle.

Returns:

  1. battle_vector position
Last updated 7/9/2024 11:45:05 AM