fireAtTarget: Difference between revisions
Jump to navigation
Jump to search
m (Text replace - "{{uc:{{PAGENAME}}}}" to "{{uc:{{PAGENAME}}}} {{uc:{{PAGENAME}}}}") |
m (Example was missing quotes around the string) |
||
Line 19: | Line 19: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
|x1= <pre>_handle = this fireAtTarget [groundtarget1,HellfireLauncher];</pre> |= Example 1 | |x1= <pre>_handle = this fireAtTarget [groundtarget1,"HellfireLauncher"];</pre> |= Example 1 | ||
|x2= <pre>_handle = Igla_AA_pod_TK_EP1 fireAtTarget [_helicopter,currentweapon Igla_AA_pod_TK_EP1];</pre> |= Example 2 | |x2= <pre>_handle = Igla_AA_pod_TK_EP1 fireAtTarget [_helicopter,currentweapon Igla_AA_pod_TK_EP1];</pre> |= Example 2 | ||
|x3= <pre>_handle = Igla_AA_pod_TK_EP1 fireAtTarget [helicopter];</pre> |= Example 3 | |x3= <pre>_handle = Igla_AA_pod_TK_EP1 fireAtTarget [helicopter];</pre> |= Example 3 |
Revision as of 18:57, 2 October 2012
Description
- Description:
- Remotely forces a unit to fire the given weapon.
- Groups:
- Uncategorised
Syntax
- Syntax:
- Script = sourceVehicle fireAtTarget [targetVehicle,weaponClassName]
- Parameters:
- sourceVehicle: Object - source vehicle to fire from
- targetVehicle: Object - target vehicle to fire at
- WeaponClassName: String - weapon classname, optional parameter
- Return Value:
- Script - script handle, which can be used to determine (via scriptDone) when the called script has finished.
Examples
- Example 1:
_handle = this fireAtTarget [groundtarget1,"HellfireLauncher"];
- Example 2:
_handle = Igla_AA_pod_TK_EP1 fireAtTarget [_helicopter,currentweapon Igla_AA_pod_TK_EP1];
- Example 3:
_handle = Igla_AA_pod_TK_EP1 fireAtTarget [helicopter];
Additional Information
- See also:
- firelaserTarget targetVehicle
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note
Notes
- Most likely only for missiles and for interaction with player only.
Bottom Section
Categories:
- Scripting Commands
- Introduced with Arma 2: Operation Arrowhead version 1.51
- Arma 2: Operation Arrowhead: New Scripting Commands
- Arma 2: Operation Arrowhead: Scripting Commands
- Command Group: Uncategorised
- ArmA 2 OA: New Scripting Commands List
- Scripting Commands ArmA2
- Scripting Commands Take On Helicopters