This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
reset_entity_rotation [2017/05/03 18:40] – justin | reset_entity_rotation [2017/05/07 16:26] – justin | ||
---|---|---|---|
Line 3: | Line 3: | ||
Resets the entity' | Resets the entity' | ||
- | |||
- | <WRAP center round info 100%> | ||
- | This function assumes that the entity was previously rotated using [[Rotate Entity Towards]] to face it towards another entity in the scene. | ||
- | </ | ||
<code python> | <code python> | ||
Line 15: | Line 11: | ||
|entity|Entity for which the rotation will be reset.|[[Entity]]|Yes| | |entity|Entity for which the rotation will be reset.|[[Entity]]|Yes| | ||
|duration|Duration of the rotation (in seconds).|[[Decimal]]|Yes| | |duration|Duration of the rotation (in seconds).|[[Decimal]]|Yes| | ||
+ | |||
+ | <WRAP center round info 100%> | ||
+ | This function assumes that the entity was previously rotated using [[Rotate Entity Towards]] to face it towards another entity in the scene. | ||
+ | </ | ||
====Example: | ====Example: | ||
<code python> | <code python> | ||
- | reset_entity_rotation(player, 1) | + | reset_entity_rotation(entity[" |
</ | </ | ||
- | // | + | // |
<WRAP center round tip 100%> | <WRAP center round tip 100%> |