PlaceVegetation

Category: Environment
Since engine version: 4.6.5.0 CP

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 iX, int iY, int iWdt, int iHgt, int iGrowth);

Parameters

id:
ID of the object to be created.
iX:
Top left corner of the target rectangle; X coordinate
iY:
Top left corner of the target rectangle; Y coordinate
iWdt:
Width of the target rectangle
iHgt:
Height of the target rectangle
iGrowth:
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
jwk, August 2002