This is an old revision of the document!
⇐ Index
SetRPLCamPosition(<-pos)
Sets the camera position when in rpl mode. Pos is a Vector3. Only has an affect when the camera is in rpl mode.
SetRPLCamPosition(V3(100 50 100))
When the mouse cursor is active (clicking) outside the game window, then SetRplCamPosition is not visually applied. However, SetCameraPosition is being applied in that situation, even though SetRplCam is true. See below code that was used for bug testing.
once RPLCamCopyPosAndRot 1 SetRplCam GetRplCamPosition ->camPos GetMapSize 0 swap v3 2.0 div ->cameraViewPos endonce <-camPos <-move add dup SetRplCamPosition SetCameraPosition <-step 1.0 add ->step 0 0 <-step v3 ->move <-cameraViewPos <-camPos <-move add sub SetRplCamForward
⇐ Index