This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
rotate_entity_towards [2017/05/08 15:43] – justin | rotate_entity_towards [2018/03/16 09:47] – justin | ||
---|---|---|---|
Line 4: | Line 4: | ||
Rotates an entity to face towards another entity over the specified duration (in seconds). The target entity can optionally be rotated to face towards the first entity simultaneously. | Rotates an entity to face towards another entity over the specified duration (in seconds). The target entity can optionally be rotated to face towards the first entity simultaneously. | ||
+ | ====Signature: | ||
<code python> | <code python> | ||
rotate_entity_towards(entity, | rotate_entity_towards(entity, | ||
Line 16: | Line 17: | ||
====Example: | ====Example: | ||
<code python> | <code python> | ||
- | rotate_entity_towards(player, | + | rotate_entity_towards(player, |
</ | </ | ||
- | // | + | // |
<WRAP center round tip 100%> | <WRAP center round tip 100%> | ||
- | Use the **Rotate Entity Towards** function to rotate | + | Use the **Rotate Entity Towards** function to have characters |
</ | </ | ||