This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
lock_camera [2017/04/12 17:03] – justin | lock_camera [2017/05/05 16:06] – justin | ||
---|---|---|---|
Line 2: | Line 2: | ||
---- | ---- | ||
- | 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 " | + | 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" |
<code python> | <code python> | ||
Line 10: | Line 10: | ||
^Argument^Description^Type^Required^ | ^Argument^Description^Type^Required^ | ||
| (No arguments for this function) | | (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: | ||
Line 31: | Line 35: | ||
<WRAP half column> | <WRAP half column> | ||
====Visual Demo:==== | ====Visual Demo:==== | ||
- | {{:wiki:load_map_demo.gif? | + | {{:wiki:lock_camera_demo.gif? |
</ | </ | ||
</ | </ |