fire (VBS2)
From Bohemia Interactive Community
| Editors, please check Policy: Scripting Command Page Syntax. |
Click on the images for descriptions
Introduced in
- Game:
- Virtual Battlespace 2
- Version:
- 1.19
Description
- Description:
- Forces a unit to fire the given weapon.
Syntax
- Syntax:
- unit fire weapon
- Parameters:
- unit: Unit - unit that's supposed to fire
- weapon: String - name of the weapon to be fired
- Return Value:
- Nothing
Alternative Syntax
- Syntax:
- unit fire [muzzle, mode, magazine, position]
- Parameters:
- unit: Unit
- muzzle: String
- mode: String
- magazine: String - (optional)
- position: PositionASL - (optional)
- Return Value:
- Nothing
Examples
- Example 1:
_soldier fire "M16"- Example 2:
_soldier fire ["throw","SmokeShell","SmokeShell"]
Additional Information
- Multiplayer:
- Behaviour unknown.
- See also:
- doFire, commandFire
Notes
Notes
Notes
- 14:45, 29 July 2008 (CEST)
- Besselinksjm
- As of VBS2 1.20 units forget to raise their weapon, thereby not firing very effectively. This is a known bug.

