camera_look_through(navpoint_name[, duration[, yield]]) |
|
Parameters: |
navpoint_name | | (string) navpoint to look through |
duration | | (float, optional) duration of movement, in seconds; if set to 0, camera will instantly jump to the end position and orientation (defaults to 0) |
yield | | (boolean, optional) set to true to block until the camera movement is complete (defaults to false) |
|
Returns: |
none |
|
Description: |
Moves the camera from its current position and orientation to the specified navpoint's position and orientation. NB: the camera will not return to its default behavior unless a camera_end_script() action is issued. If the camera script finishes execution before the camera_end_script() action is issued, the camera will hold the last position of the camera script. Example: camera_look_through("$npc000", 5.0, true) camera_end_script() Move the camera over a period of five seconds so that it is looking through navpoint "$npc000". |
|
|
back to index | SR3 Script Action Documentation Last updated: Tue, 09 Aug 2011 11:32:15 |