Kategorie: Umwelt
Ab Engineversion: 1.0 OC
PlaceVegetation
Beschreibung
Places vegetation in the specified target rectangle. In local calls, the specified coordinates are an offset to the position of the calling object. Note that if an area-proplist is given, that shape is always assumed in global coordinates. Returns a pointer to the newly created plant.
Syntax
object PlaceVegetation(id id, int x, int y, int width, int height, int growth, proplist area);
Parameter
- id:
- ID des zu erstellenden Objekts.
- x:
- Obere linke Ecke des Zielrechtecks, X-Koordinate
- y:
- Obere linke Ecke des Zielrechtecks, Y-Koordinate
- width:
- Breite des Zielrechtecks
- height:
- Höhe des Zielrechtecks
- growth:
- Wachstumsphase des Zielobjekts. -1 platziert Vegetation in zufälligem Wachstumsstadium, ansonsten gilt der Wertebereich 1-100000 (1-100%)
- area:
- [opt] If supplied, this may be a Shape-proplist, which overrides the area given by (x,y,width.height) and places the object within the given shape only.
Siehe auch: PlaceAnimal