createGuardedPoint: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 7: Line 7:
____________________________________________________________________________________________
____________________________________________________________________________________________


| 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
| Adds a point guarded by the given side. The actual item or position guarded is determined by the following priority.
 
*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
____________________________________________________________________________________________
____________________________________________________________________________________________


| '''createGuardedPoint''' [side, position, idStatic, vehicle] |= Syntax
| '''createGuardedPoint''' [ [[side]], [[Position]], idStatic, [[Object#Vehicle|Vehicle]] |= Syntax


|p1= [side, [[side]] |= Parameter 1
|p1= [[Side]] |= Parameter 1
|p2= [position, [[array]] in position format |= Parameter 2
|p2= [[Position]]|= Parameter 2
|p3= [idStatic, [[number]] |= Parameter 3
|p3= idStatic, [[Number]] |= Parameter 3
|p4= [vehicle,  [[Array]] of type objects |= Parameter 4
|p4= [[Object#Vehicle|Vehicle]] |= Parameter 4


| [[Nothing]] or undocumented |= Return value
| [[Nothing]] or undocumented |= Return value

Revision as of 08:03, 27 August 2007

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

Description

Description:
Adds a point guarded by the given side. The actual item or position guarded is determined by the following priority.
  • 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, Number
Vehicle
Return Value:
Nothing or undocumented

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