This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
4rpl:commands:setrplcamposition [2025/02/14 14:57] – created - external edit 127.0.0.1 | 4rpl:commands:setrplcamposition [2025/09/13 14:31] (current) – [Bug] kalli | ||
---|---|---|---|
Line 11: | Line 11: | ||
<code 4rpl> | <code 4rpl> | ||
SetRPLCamPosition(V3(100 50 100)) | SetRPLCamPosition(V3(100 50 100)) | ||
+ | </ | ||
+ | |||
+ | ===== Bug ===== | ||
+ | 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. | ||
+ | <code 4rpl> | ||
+ | once | ||
+ | RPLCamCopyPosAndRot | ||
+ | 1 SetRplCam | ||
+ | GetRplCamPosition -> | ||
+ | GetMapSize 0 swap v3 2.0 div -> | ||
+ | endonce | ||
+ | |||
+ | # <-camPos <-move add SetRplCamPosition # BUGGED. | ||
+ | <-camPos <-move add dup SetRplCamPosition SetCameraPosition # FIXED. | ||
+ | |||
+ | <-step 1.0 add ->step | ||
+ | 0 0 <-step v3 -> | ||
+ | |||
+ | < | ||
</ | </ | ||
< | < | ||