Category: Environment
Since engine version: 5.1 OC
PlaceVegetation
Description
Places vegetation in the specified target rectangle. In local calls, the specified coordinates are an offset to the position of the calling object. Returns a pointer to the newly created plant.
Syntax
object PlaceVegetation(id id, int x, int y, int width, int height, int growth);
Parameters
- id:
- ID of the object to be created.
- x:
- Top left corner of the target rectangle; X coordinate.
- y:
- Top left corner of the target rectangle; Y coordinate.
- width:
- Width of the target rectangle.
- height:
- Height of the target rectangle.
- growth:
- Growth phase of the target object. Value -1 places vegetation at random growth, otherwise the valid range is 1-100000 (1-100%).
See also: PlaceAnimal


