This shows you the differences between two versions of the page.
Next revision | Previous revisionNext revisionBoth sides next revision | ||
move_camera [2017/04/18 20:49] – external edit 127.0.0.1 | move_camera [2017/11/28 18:15] – justin | ||
---|---|---|---|
Line 2: | Line 2: | ||
---- | ---- | ||
- | Instantly moves the camera to the specified (X,Y,Z) coordinate. | + | Instantly moves the camera to the specified (X, |
- | + | ||
- | Examples: Coordinate (0,0,8) will place the camera | + | |
<code python> | <code python> | ||
- | move_camera(coord[0, 0, 0]) | + | move_camera(destination, look_at_target) |
</ | </ | ||
^Argument^Description^Type^Required^ | ^Argument^Description^Type^Required^ | ||
- | |coord[0|Description.|[[String]]|Yes| | + | |destination|Destination coordinate or camera position.|[[Coordinate]] or [[String]]|Yes| |
- | | 0|Description.|[[String]]|Yes| | + | |look_at_target|Coordinate or entity to aim the camera towards.|[[Coordinate]] or [[Entity]]|No| |
- | | 0]|Description.|[[String]]|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> | ||
- | move_camera(coord[0, 0, 0]) | + | move_camera(" |
</ | </ | ||
- | // | + | // |
<WRAP center round tip 100%> | <WRAP center round tip 100%> | ||
- | Use the **Move Camera** function to ... | + | Use the **Move Camera** function to focus on certain characters/ |
</ | </ | ||