setMissileTargetPos: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Some wiki formatting) |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
Line 9: | Line 9: | ||
|descr= Sets a guided munition target position. | |descr= Sets a guided munition target position. | ||
The munition must have {{ | The munition must have {{hl|manualControl}} config entry to use this command. | ||
The target position has to be inside the missile's configured targeting cone for the command to work. | The target position has to be inside the missile's configured targeting cone for the command to work. | ||
Line 33: | Line 33: | ||
|user= Benargee | |user= Benargee | ||
|timestamp= 20200413060400 | |timestamp= 20200413060400 | ||
|text= To get list of compatible missiles with | |text= To get list of compatible missiles with <syntaxhighlight lang="cpp" inline>manualControl = 1</syntaxhighlight>, use the below script and paste the clipboard results to a text editor. | ||
<sqf> | <sqf> | ||
private _cfgCount = count (configfile >> "CfgAmmo"); | private _cfgCount = count (configfile >> "CfgAmmo"); |
Revision as of 11:50, 27 July 2022
Description
- Description:
- Sets a guided munition target position. The munition must have manualControl config entry to use this command. The target position has to be inside the missile's configured targeting cone for the command to work.
- Groups:
- Object ManipulationWeapons
Syntax
- Syntax:
- munition setMissileTargetPos position
- Parameters:
- munition: Object
- position: Array format PositionAGL
- Return Value:
- Nothing
Examples
- Example 1:
- Example 2:
- private _missile = createVehicle ["M_Scalpel_AT", player modelToWorld [0,0,100], [], 0, "CAN_COLLIDE"]; _missile setMissileTargetPos (player modelToWorld [0,100,0]);
Additional Information
- See also:
- missileTargetPos setMissileTarget missileTarget
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
- Posted on Apr 13, 2020 - 06:04 (UTC)
-
To get list of compatible missiles with
manualControl = 1
, use the below script and paste the clipboard results to a text editor.private _cfgCount = count (configfile >> "CfgAmmo"); private _pasteStr = ""; for "_x" from 0 to (_cfgCount - 1) do { _cfg = (configFile >> "CfgAmmo") select _x; _ammoClassName = configName _cfg; private _manCtrl = getNumber (configFile >> "CfgAmmo" >> _ammoClassName >> "manualControl"); if (_manCtrl > 0) then { _pasteStr = _pasteStr + _ammoClassName + endl; }; }; copyToClipboard _pasteStr;