Pcam param V3
From Unofficial QEdit Wiki Guide
Contents
Syntax
Syntax: pcam_param_V3 register1
- register1 = Camera relative location on player x coords.
- register2 = Camera relative location on player y coords.
- register3 = Camera relative location on player z coords.
- register4 = Camera physical location x coords away from player.
- register5 = Camera physical location y coords away from player.
- register6 = Camera physical location z coords away from player.
Use
Used to make a camera with the player as its centerpoint. The camera can be adjusted by the player's L/R Button. Must be looped with a jmp and 1 sync to maintain the camera otherwise it resets to the default camera position.
Example
//This example will create the camera that is used often in the Endless Nightmare series of quests.
100: sync //Waits 1 frame.
leti R1, 00000000 //Camera focal point from the player in x coords, 0 units (neither left or right).
leti R2, 00000010 //Camera focal point from the player in y coords, 16 units high.
leti R3, 00000005 //Camera focal point from the player in z coords, 5 units away.
leti R4, 00000000 //Physical Camera location away from player x coords, 0 units (neither left or right).
leti R5, 0000000C //Physical Camera location away from player y coords, 12 units high.
leti R6, 00000020 //Physical Camera location away from player z coords, 32 units away.
pcam_param_V3 R1 //Performs a camera focused on the player offset by the register coordinates.
jmp 100