Page tree
Skip to end of metadata
Go to start of metadata



Introduced in

Version:1.31

Description

Description:Marks a location as restricted for a unit or side. Restricted areas are locations which AI units avoid. Only works for ground units / vehicles.

Syntax

Syntax:location assignAsRestrictedArea target
Parameters:
  • location: Location - Location to avoid.
  • target: Object or Side-2 - Unit or side that should avoid the area.
Return Value:Boolean

Examples

Examples:
myLoc = createLocation ["Name", getPos player, 10, 10];
nul = myLoc assignAsRestrictedArea civilian;
myLoc attachObject player;
// Creates a circular location area with a radius of 10 meters, and attaches it to the player. The location is then assigned as restricted to all civilians.

Additional Information

See also: unassignAsRestrictedArea, hasRestrictedArea, isInRestrictedArea
Multiplayer: 
Problems: 

Notes