BIS fnc objectsGrabber: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "<code>([^{]+)<\/code>" to "<sqf>$1</sqf>") |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
Line 17: | Line 17: | ||
|descr= Converts a set of placed objects to an object array ('''as a [[String]]''') for the [[BIS_fnc_objectsMapper|DynO mapper]].<br> | |descr= Converts a set of placed objects to an object array ('''as a [[String]]''') for the [[BIS_fnc_objectsMapper|DynO mapper]].<br> | ||
Format is the following. First, the header: | Format is the following. First, the header: | ||
< | <sqf> | ||
/* | |||
Grab data: | Grab data: | ||
Mission: TheMissionName | Mission: TheMissionName | ||
Line 24: | Line 25: | ||
Area size: 50 | Area size: 50 | ||
Using orientation of objects: yes/no | Using orientation of objects: yes/no | ||
*/ | |||
</sqf> | |||
Then, data: | Then, data: | ||
Line 48: | Line 50: | ||
|r1= [[String]] | |r1= [[String]] | ||
|x1= <sqf | |x1= <sqf>[getPos player, 20, true] call BIS_fnc_objectsGrabber;</sqf> | ||
|seealso= [[BIS_fnc_objectsMapper]] [[BIS_fnc_getPitchBank]] [[BIS_fnc_setPitchBank]] | |seealso= [[BIS_fnc_objectsMapper]] [[BIS_fnc_getPitchBank]] [[BIS_fnc_setPitchBank]] |
Revision as of 22:00, 12 July 2022
Description
- Description:
- Converts a set of placed objects to an object array (as a String) for the DynO mapper.
Format is the following. First, the header:Then, data:/* Grab data: Mission: TheMissionName World: Stratis Anchor position: [3781.59, 3289.67] Area size: 50 Using orientation of objects: yes/no */or, if object orientation is not used: - Execution:
- call
- Groups:
- Object Manipulation
Syntax
- Syntax:
- [position, size, objectOrientation] call BIS_fnc_objectsGrabber
- Parameters:
- position: Position - (Optional, default [0,0]) 2D or 3D position, center of the "grabbing" area
- size: Number - (Optional, default 50) size (radius) of the "grabbing" area
- objectOrientation: Boolean - (Optional, default false) capture object orientation or not. Format BIS_fnc_getPitchBank
- Return Value:
- String
Examples
- Example 1:
Additional Information
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 Oct 16, 2021 - 12:33 (UTC)
-
The format of each entry is as follows:
0: STRING - Classname 1: ARRAY - Position [delta X, delta Y, z] 2: NUMBER - Azimuth 3: NUMBER - Fuel 4: NUMBER - Damage 5: ARRAY - Return from BIS_fnc_getPitchBank (only if 2nd param is true) 6: STRING - vehicleVarName 7: STRING - Initialization commands 8: BOOLEAN - Enable simulation 9: BOOLEAN - Position is ASL