Tile - YEntity - Throw Entity – Ylands
Jump to navigation
Jump to search
m (YlandsClassyBot moved page Ylands Tile - Throw entity to Ylands:Tile - YEntity - Throw 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. | |||
--> | |||
== Throw Entity(Instigator, Entity template, Origin, Direction, Speed, Gravity, Damage, Damage type, Destroy on hit, On entity hit, On ground hit, On missed) == | |||
[[File:YlandsTile-637.png]] | |||
<pre>static throwEntity(instigator: YEntity, entityTemplate: YEntityTemplate, origin: YVector3, direction: YVector3, speed: number, useGravity: boolean, damage: number, damageType: YDamageType, destroyOnHit: boolean, onEntityHit: (entity: YEntity, hitPosition: YVector3) => void, onGroundHit: (hitPosition: YVector3) => void, onMissed: () => void): void;</pre> | |||
=== Parameters === | |||
==== instigator ==== | |||
==== entityTemplate ==== | |||
==== origin ==== | |||
==== direction ==== | |||
==== speed ==== | |||
==== useGravity ==== | |||
==== damage ==== | |||
==== damageType ==== | |||
==== destroyOnHit ==== | |||
==== onEntityHit ==== | |||
==== onGroundHit ==== | |||
==== onMissed ==== | |||
=== Description === | |||
Throws a '''projectile''' spawned from the '''entity template'''. | |||
=== Notes === | |||
* Instigator will be listed as the source of the damage, when the throw hits something | |||
Line 7: | Line 47: | ||
[[Category: Instructions]] | [[Category: Instructions]] | ||
Revision as of 08:52, 8 July 2021
Throw Entity(Instigator, Entity template, Origin, Direction, Speed, Gravity, Damage, Damage type, Destroy on hit, On entity hit, On ground hit, On missed)
static throwEntity(instigator: YEntity, entityTemplate: YEntityTemplate, origin: YVector3, direction: YVector3, speed: number, useGravity: boolean, damage: number, damageType: YDamageType, destroyOnHit: boolean, onEntityHit: (entity: YEntity, hitPosition: YVector3) => void, onGroundHit: (hitPosition: YVector3) => void, onMissed: () => void): void;
Parameters
instigator
entityTemplate
origin
direction
speed
useGravity
damage
damageType
destroyOnHit
onEntityHit
onGroundHit
onMissed
Description
Throws a projectile spawned from the entity template.
Notes
- Instigator will be listed as the source of the damage, when the throw hits something