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 Battle |
|
| Loaded in Frontend |
|
-
assault_equipment:vehicle_count() -
Returns the number of vehicles in the collection.
Returns:
countnumber
-
assault_equipment:vehicle_item(indexnumber) -
Returns the vehicles at the specified index value in the collection.
Parameters:
1
index
Returns:
vehiclebattle_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.
-
vehicle:vehicle_key() -
Returns the key of the vehicle type, from the
battlefield_siege_vehiclestable.Returns:
vehicle keystring
-
vehicle:position() -
Returns the position of the vehicle.
Returns:
positionbattle_vector