createGuardedPoint: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 1: Line 1:
[[Category:Scripting Commands|CREATEGUARDEDPOINT]]
{{Command|= Comments
[[Category:Scripting Commands OFP Elite |CREATEGUARDEDPOINT]]
____________________________________________________________________________________________
[[Category:Scripting Commands ArmA|CREATEGUARDEDPOINT]]


| arma |= Game name


<h2 style="color:#000066">''' createGuardedPoint ''[side, position, idStatic, vehicle]'''''</h2>
|2.86|= Game version
____________________________________________________________________________________________


| Adds a point guarded by the given side. If idStatic is not negative, the position of a static object with the given id is guarded. If the given vehicle is valid, the starting position of the vehicle is guarded, otherwise the given position is guarded. |= Description
____________________________________________________________________________________________


'''Operand types:'''
| '''createGuardedPoint''' [side, position, idStatic, vehicle] |= Syntax


'''[side, position, idStatic, vehicle]:''' [[Array]]
|p1= [side, position, idStatic, vehicle]: [[Array]] |= Parameter 1


'''Type of returned value:'''
| [[Nothing]] |= Return value
____________________________________________________________________________________________
 
|x1= <pre>point = createGuardedPoint [ [[east]], [0, 0], -1, [[vehicle]] [[player]] ]</pre> |= Example 1
____________________________________________________________________________________________


[[Nothing]]
|  |= See also


'''Compatibility:'''
}}


Version 1.86 required.
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->


'''Description:'''
<!-- Note Section END -->
</dl>


Adds a point guarded by the given '''side'''.
<h3 style="display:none">Bottom Section</h3>


If '''idStatic''' is not negative, the position of a static object with the given id is guarded.
[[Category:Scripting Commands|CREATEGUARDEDPOINT]]
 
[[Category:Scripting Commands OFP Elite |CREATEGUARDEDPOINT]]
If the given '''vehicle''' is valid, the starting position of the vehicle is guarded, otherwise the given '''position''' is guarded.
[[Category:Scripting Commands ArmA|CREATEGUARDEDPOINT]]
 
 
'''Example:'''
 
point = '''createGuardedPoint''' [ [[east]], [0, 0], -1, [[vehicle]] [[player]] ]

Revision as of 00:07, 2 August 2006

-wrong parameter ("Arma") defined!-2.86
Hover & click on the images for description

Description

Description:
Adds a point guarded by the given side. If idStatic is not negative, the position of a static object with the given id is guarded. If the given vehicle is valid, the starting position of the vehicle is guarded, otherwise the given position is guarded.
Groups:
Uncategorised

Syntax

Syntax:
createGuardedPoint [side, position, idStatic, vehicle]
Parameters:
[side, position, idStatic, vehicle]: Array
Return Value:
Nothing

Examples

Example 1:
point = createGuardedPoint [ [[east]], [0, 0], -1, [[vehicle]] [[player]] ]

Additional Information

See also:
See also needed

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

Bottom Section