Tile - YEntity - Spawn Entity – Ylands
Jump to navigation
Jump to search
m (YlandsClassyBot moved page Ylands Tile - Spawn entity to Ylands:Tile - YEntity - Spawn Entity: New Structure) |
No edit summary |
||
Line 1: | Line 1: | ||
<!--- | |||
THIS PAGE WAS GENERATED AUTOMATICALLY; DO NOT EDIT IT, OTHERWISE YOUR CHANGES WILL BE LOST DURING FUTURE UPDATE. | |||
--> | |||
== Spawn Entity(Type, Item count, Position, Rotation) == | |||
[[File:YlandsTile-287.png]] | |||
[[ | [[File:YlandsTile-287-rv.png]] | ||
<pre>static spawnEntity(type: YEntityType, count: number, position: YVector3, orientation: YVector3): YEntity;</pre> | |||
=== Parameters === | |||
==== type ==== | |||
==== count ==== | |||
==== position ==== | |||
==== orientation ==== | |||
=== Returns === | |||
'''YEntity''' | |||
=== Description === | |||
Allows to '''spawn''' selected entity '''Prototype''' to world, either at specific position or in to a container. Item count cannot be higher than entity stack size, instruction will always create only one entity instance. | |||
== Spawn Entity(Type, Item count, Target) == | |||
[[File:YlandsTile-288.png]] | |||
[[File:YlandsTile-288-rv.png]] | |||
<pre>static spawnEntity(type: YEntityType, count: number, container: YEntity): YEntity;</pre> | |||
=== Parameters === | |||
==== type ==== | |||
==== count ==== | |||
==== container ==== | |||
=== Returns === | |||
'''YEntity''' | |||
=== Description === | |||
Allows to '''spawn''' entity from a '''Template''', either at specific position or in to a container. | |||
== Spawn Entity(Template, Position, Rotation) == | |||
[[File:YlandsTile-129.png]] | |||
[[File:YlandsTile-129-rv.png]] | |||
<pre>static spawn(template: YEntityTemplate, position: YVector3, orientation: YVector3): YEntity;</pre> | |||
=== Parameters === | |||
==== template ==== | |||
==== position ==== | |||
==== orientation ==== | |||
=== Returns === | |||
'''YEntity''' | |||
=== Description === | |||
Allows to '''spawn''' selected entity '''Prototype''' at specific position in the world. | |||
=== Notes === | |||
* Item count cannot be higher than entity stack size, instruction will always create only one entity instance. | |||
== Spawn Entity(Template, Target) == | |||
[[File:YlandsTile-128.png]] | |||
[[File:YlandsTile-128-rv.png]] | |||
<pre>static spawn(template: YEntityTemplate, container: YEntity): YEntity;</pre> | |||
=== Parameters === | |||
==== template ==== | |||
==== container ==== | |||
=== Returns === | |||
'''YEntity''' | |||
=== Description === | |||
Allows to '''spawn''' selected entity *''Prototype'' in to a container. | |||
=== Notes === | |||
* Item count cannot be higher than entity stack size, instruction will always create only one entity instance. | |||
* Works also for players and NPCs. | |||
Line 13: | Line 109: | ||
[[Category: Instructions]] | [[Category: Instructions]] | ||
Revision as of 08:52, 8 July 2021
Spawn Entity(Type, Item count, Position, Rotation)
static spawnEntity(type: YEntityType, count: number, position: YVector3, orientation: YVector3): YEntity;
Parameters
type
count
position
orientation
Returns
YEntity
Description
Allows to spawn selected entity Prototype to world, either at specific position or in to a container. Item count cannot be higher than entity stack size, instruction will always create only one entity instance.
Spawn Entity(Type, Item count, Target)
static spawnEntity(type: YEntityType, count: number, container: YEntity): YEntity;
Parameters
type
count
container
Returns
YEntity
Description
Allows to spawn entity from a Template, either at specific position or in to a container.
Spawn Entity(Template, Position, Rotation)
static spawn(template: YEntityTemplate, position: YVector3, orientation: YVector3): YEntity;
Parameters
template
position
orientation
Returns
YEntity
Description
Allows to spawn selected entity Prototype at specific position in the world.
Notes
- Item count cannot be higher than entity stack size, instruction will always create only one entity instance.
Spawn Entity(Template, Target)
static spawn(template: YEntityTemplate, container: YEntity): YEntity;
Parameters
template
container
Returns
YEntity
Description
Allows to spawn selected entity *Prototype in to a container.
Notes
- Item count cannot be higher than entity stack size, instruction will always create only one entity instance.
- Works also for players and NPCs.