This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
lock_camera [2017/04/12 12:26] – external edit 127.0.0.1 | lock_camera [2021/04/21 18:33] (current) – justin | ||
---|---|---|---|
Line 4: | Line 4: | ||
Locks the camera controls and stops the camera from following the player. The camera will only be affected by scripts until it is unlocked using one of the "Reset Camera" | Locks the camera controls and stops the camera from following the player. The camera will only be affected by scripts until it is unlocked using one of the "Reset Camera" | ||
+ | ====Signature: | ||
<code python> | <code python> | ||
lock_camera() | lock_camera() | ||
Line 9: | Line 10: | ||
^Argument^Description^Type^Required^ | ^Argument^Description^Type^Required^ | ||
+ | | (No arguments for this function) | ||
+ | |||
+ | <WRAP center round info 100%> | ||
+ | This function must be called to put the camera into a locked state before using any of the camera movement functions: [[Move Camera]], [[Move Camera At Speed]], [[Move Camera Over Time]], [[Look At Target]], [[Look At Target Over Time]], [[Rotate Camera]], and [[Rotate Camera Over Time]]. | ||
+ | </ | ||
====Example: | ====Example: | ||
- | < | + | < |
- | lock_camera() | + | lock_camera(); |
</ | </ | ||
- | // | + | // |
+ | |||
+ | <WRAP center round tip 100%> | ||
+ | Use the **Lock Camera** function to force a static view of the current map or to freeze the camera in place for the duration of a cutscene. | ||
+ | </ | ||
+ | |||
+ | ---- | ||
<WRAP group> | <WRAP group> | ||
<WRAP half column> | <WRAP half column> | ||
====Editor Node:==== | ====Editor Node:==== | ||
- | {{:wiki:load_map_node.png? | + | {{:wiki:lock_camera_node.png? |
</ | </ | ||
<WRAP half column> | <WRAP half column> | ||
====Visual Demo:==== | ====Visual Demo:==== | ||
- | {{:wiki:load_map_demo.gif? | + | {{:wiki:lock_camera_demo.gif? |
</ | </ | ||
</ | </ |