fireAtTarget: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(long time missing from being documented, not anymore)
 
mNo edit summary
Line 10: Line 10:
____________________________________________________________________________________________
____________________________________________________________________________________________


|sourceVehicle '''fireAtTarget''' [targetVehicle,weaponClassName] |= Syntax
| [[Script]] <nowiki>=</nowiki> sourceVehicle '''fireAtTarget''' [targetVehicle,weaponClassName] |= Syntax


|p1= sourceVehicle: [[Object]] - source vehicle to fire from |= Parameter 1
|p1= sourceVehicle: [[Object]] - source vehicle to fire from |= Parameter 1
|p2= WeaponClassName: [[String]] - weapon classname |= Parameter 2
|p2= targetVehicle: [[Object]] - target vehicle to fire at |= Parameter 2
|p3= targetVehicle: [[Object]] - target vehicle to fire at |= Parameter 3
|p3= WeaponClassName: [[String]] - weapon classname, optional paramater |= Parameter 3


| [[Nothing]] |= Return value
| [[Script]] - script handle, which can be used to determine (via [[scriptDone]]) when the called script has finished.|= Return value
____________________________________________________________________________________________
____________________________________________________________________________________________
   
   
|x1= <pre>this fireAtTarget [groundtarget1,HellfireLauncher];</pre> |= Example 1
|x1= <pre>_handle = this fireAtTarget [groundtarget1,HellfireLauncher];</pre> |= Example 1
|x2= <pre>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
|x2= <pre>_handle = Igla_AA_pod_TK_EP1 fireAtTarget [helicopter];</pre> |= Example 3
____________________________________________________________________________________________
____________________________________________________________________________________________



Revision as of 12:14, 16 September 2010

Hover & click on the images for description

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 paramater
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];

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