createGuardedPoint: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 23: Line 23:
Adds a point guarded by the given '''side'''.
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 '''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.
If the given '''vehicle''' is valid, the starting position of the vehicle is guarded, otherwise the given '''position''' is guarded.





Revision as of 02:18, 6 July 2006


createGuardedPoint [side, position, idStatic, vehicle]


Operand types:

[side, position, idStatic, vehicle]: Array

Type of returned value:

Nothing

Compatibility:

Version 1.86 required.

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.


Example:

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