createGuardedPoint

From Bohemia Interactive Community
Revision as of 02:09, 6 July 2006 by Planck (talk | contribs)
Jump to navigation Jump to search


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 ]