fire (VBS2)

From Bohemia Interactive Community

Jump to: navigation, search
Editors, please check Policy: Scripting Command Page Syntax.
Introduced in Virtual Battlespace 2 version 1.19Arguments of this scripting command don't have to be local to the client the command is executed onEffects of this scripting command are broadcasted over the network and happen on every computer in the network

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

+ Add Note

Only post proven facts here. Use the talk page or the forums for discussions.

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.

Bottom Section

Personal tools
Buy ArmA now!