createGuardedPoint: Difference between revisions

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


|p1=  [side, position, idStatic, vehicle]: [[Array]] |= Parameter 1
|p1=  [side, position, idStatic, vehicle]: [[Array]] |= Parameter 1
|p2= [[Side]] |= Parameter 2
|p2= side: [[Side]] |= Parameter 2
|p3= [[Position]]|= Parameter 3
|p3= position: [[Position]]|= Parameter 3
|p4= idStatic, [[Number]] |= Parameter 4
|p4= idStatic: [[Number]] |= Parameter 4
|p5= [[Object#Vehicle|Vehicle]] |= Parameter 5
|p5= vehicle: [[Object]] |= Parameter 5


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

Revision as of 17:55, 21 January 2009

-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, vehicle]: Array
side: Side
position: Position
idStatic: Number
vehicle: Object
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