StoreCameraFacing
Contents |
[edit] StoreCameraFacing()
Stores the camera facing and position so it can be restored later.
[edit] Description
Stores (bookmarks) the camera's facing and position so it can be restored later with RestoreCameraFacing.
[edit] Remarks
Note that StoreCameraFacing and RestoreCameraFacing donât take parameter about whose camera we want to deal with. So you need to call them in an AssignCommand call with the PC being assigned the camera job.
RestoreCameraFacing can be used, once, to restore the camera facing and mode stored by a call of StoreCameraFacing. Calling RestoreCameraFacing when the PC is in a cutscene doesnât work. Iâm not sure if that is a bug or intended behaviour.
It also appears that when SetCutsceneMode is set to TRUE, the PCâs camera facing is automatically stored, and when you call SetCutsceneMode to FALSE, the camera facing is automatically restored. This means you can do all sorts of stuff with the camera mode and facing in a cutscene without having to worry about it afterwards. If you move the PC around in the cutscene, though, the restored camera facing may no longer be a good angle etc. In that case, you can always call SetCameraFacing when the PC exits the cutscene.
[edit] Version
1.30
[edit] See Also
functions: |
author: Charles Feduke, editor: Jasperre