This shows you the differences between two versions of the page.
Next revision | Previous revisionLast revisionBoth sides next revision | ||
look_at_target [2017/04/15 19:29] – external edit 127.0.0.1 | look_at_target [2018/03/16 09:45] – justin | ||
---|---|---|---|
Line 2: | Line 2: | ||
---- | ---- | ||
- | Rotates | + | Instantly rotates |
+ | ====Signature: | ||
<code python> | <code python> | ||
- | look_at_target(player) | + | look_at_target(target) |
</ | </ | ||
^Argument^Description^Type^Required^ | ^Argument^Description^Type^Required^ | ||
- | |player|Description.|[[String]]|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: | ||
<code python> | <code python> | ||
- | look_at_target(player) | + | 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/ |
</ | </ | ||