This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
look_at_target [2017/04/15 19:40] – justin | look_at_target [2021/04/21 18:35] (current) – justin | ||
---|---|---|---|
Line 4: | Line 4: | ||
Instantly rotates the camera to point towards the specified entity or coordinate. | Instantly rotates the camera to point towards the specified entity or coordinate. | ||
+ | ====Signature: | ||
<code python> | <code python> | ||
look_at_target(target) | look_at_target(target) | ||
Line 9: | Line 10: | ||
^Argument^Description^Type^Required^ | ^Argument^Description^Type^Required^ | ||
- | |target|Target to aim camera towards.|[[Entity]] or [[Coordinate]]|Yes| | + | |target|Target to aim the camera towards.|[[Entity]] or [[Coordinate]]|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(entity[" | + | look_at_target(entity[" |
</ | </ | ||
// | // | ||
<WRAP center round tip 100%> | <WRAP center round tip 100%> | ||
- | Use the **Look At Target** function to ... | + | Use the **Look At Target** function to focus on certain characters/ |
</ | </ | ||