This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| look_at_target_over_time [2017/04/16 19:27] – external edit 127.0.0.1 | look_at_target_over_time [2021/04/21 18:35] (current) – justin | ||
|---|---|---|---|
| Line 2: | Line 2: | ||
| ---- | ---- | ||
| - | Rotates the camera over a duration of time to point towards the specified | + | Rotates the camera over a duration of time (in seconds) |
| + | ====Signature: | ||
| <code python> | <code python> | ||
| - | look_at_target_over_time(player, 1) | + | look_at_target_over_time(target, duration) |
| </ | </ | ||
| ^Argument^Description^Type^Required^ | ^Argument^Description^Type^Required^ | ||
| - | |player|Description.|[[String]]|Yes| | + | |target|Target to aim the camera towards.|[[Entity]] or [[Coordinate]]|Yes| |
| - | | 1|Description.|[[String]]|Yes| | + | |duration|Duration of the rotation (in seconds).|[[Decimal]]|Yes| |
| + | |||
| + | <WRAP center round info 100%> | ||
| + | [[Lock Camera]] must be called before using this function to prevent the player from manually controlling the camera. | ||
| + | </ | ||
| ====Example: | ====Example: | ||
| - | < | + | < |
| - | look_at_target_over_time(player, 1) | + | look_at_target_over_time(entity[" |
| </ | </ | ||
| - | // | + | // |
| <WRAP center round tip 100%> | <WRAP center round tip 100%> | ||
| - | Use the **Look At Target Over Time** function to ... | + | Use the **Look At Target Over Time** function to focus on certain characters/ |
| </ | </ | ||