Editing Entity Modules
Jump to navigation
Jump to search
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
== rotator == | == rotator == | ||
Rotates itself in order to face a specified entity | Rotates itself in order to face a specified entity | ||
Line 6: | Line 4: | ||
=== Inputs === | === Inputs === | ||
* | * RotateTowards <string> | ||
** Start rotating towards the specified entity | ** Start rotating towards the specified entity | ||
* | * StopRotateTowards | ||
** Stop rotating | ** Stop rotating | ||
=== Keyvalues === | === Keyvalues === | ||
* | * lookat <string> (Default: eyes) | ||
** Decides at what part of the target the entity should look exactly. Possible values: eyes, origin, center, aim (at what the target is looking at) | ** Decides at what part of the target the entity should look exactly. Possible values: eyes, origin, center, aim (at what the target is looking at) | ||
* | * projectilespeed <number> (Default: 0) | ||
** The speed of the projectile that would be fired from rotator position. This allows the rotator to lead its aim | ** The speed of the projectile that would be fired from rotator position. This allows the rotator to lead its aim | ||
* | * aimoffset <number> (Default: 0) | ||
** Account for gravity by adjusting the rotator by this many degrees for every unit away from the target | ** Account for gravity by adjusting the rotator by this many degrees for every unit away from the target | ||
* | * velocitymode <1/0> (Default: 0) | ||
** Set angular velocity instead of setting angles directly. Only works on some entities | ** Set angular velocity instead of setting angles directly. Only works on some entities | ||
* | * rotationspeedx <number> (Default: 0) | ||
** Rotation speed in x (pitch, up/down) axis | ** Rotation speed in x (pitch, up/down) axis | ||
* | * rotationspeedy <number> (Default: 0) | ||
** Rotation speed in y (yaw, left/right) axis | ** Rotation speed in y (yaw, left/right) axis | ||
* | * rotationlimitx <number> (Default: 0) | ||
** If set to value other than 0, the rotator cannot rotate above this angle in x axis (pitch, up/down) | ** If set to value other than 0, the rotator cannot rotate above this angle in x axis (pitch, up/down) | ||
* | * rotationlimity <number> (Default: 0 | ||
** If set to value other than 0, the rotator cannot rotate above this angle in y axis (yaw, left/right) | ** If set to value other than 0, the rotator cannot rotate above this angle in y axis (yaw, left/right) | ||
== fakeparent == | == fakeparent == | ||