This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
move_camera_over_time [2017/04/20 09:24] – external edit 127.0.0.1 | move_camera_over_time [2021/04/21 18:36] (current) – justin | ||
---|---|---|---|
Line 2: | Line 2: | ||
---- | ---- | ||
- | Moves the camera to the specified (X,Y,Z) coordinate over the specified | + | Moves the camera to the specified (X, |
- | + | ||
- | Examples: Coordinate (0,0,8) will place the camera | + | |
+ | ====Signature: | ||
<code python> | <code python> | ||
- | move_camera_over_time(coord[0, 0, 0], 1) | + | move_camera_over_time(destination, duration, 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| | + | |duration|Duration of the movement (in seconds).|[[Decimal]]|Yes| |
- | | 0]|Description.|[[String]]|Yes| | + | |look_at_target|Coordinate or entity to aim the camera towards.|[[Coordinate]] or [[Entity]]|No| |
- | | 1|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: | ||
- | < | + | < |
- | move_camera_over_time(coord[0, 0, 0], 1) | + | move_camera_over_time(coord[2, 2, 32], 1, entity[" |
</ | </ | ||
- | // | + | // |
<WRAP center round tip 100%> | <WRAP center round tip 100%> | ||
- | Use the **Move Camera Over Time** function to ... | + | Use the **Move Camera Over Time** function to focus on certain characters/ |
</ | </ | ||
Line 36: | Line 38: | ||
<WRAP half column> | <WRAP half column> | ||
====Visual Demo:==== | ====Visual Demo:==== | ||
- | {{:wiki:move_camera_over_time_demo.gif? | + | {{:wiki:move_camera_at_speed_demo.gif? |
</ | </ | ||
</ | </ |