i need some help converting this code to using character control box.
camx# = camera position x()
camy# = camera position y()
camz# = camera position z()
`center and hide mouse
hide mouse
position mouse screen width() / 2, screen height() / 2
`crosshair
line screen width() / 2 - 10, screen height() / 2, screen width() / 2 + 10, screen height() / 2
line screen width() / 2, screen height() / 2 - 10, screen width() / 2, screen height() / 2 + 10
`forwards (w)
IF keystate( 17 ) = 1
camx# = newxvalue( camx#, wrapvalue( camera angle y() ), camspeed# )
camz# = newzvalue( camz#, wrapvalue( camera angle y() ), camspeed# )
position camera camx#, camheight#, camz#
ENDIF
`backwards (s)
IF keystate(31)=1
camx# = newxvalue( camx#, wrapvalue( camera angle y() - 180 ), camspeed# )
camz# = newzvalue( camz#, wrapvalue( camera angle y() - 180 ), camspeed# )
position camera camx#, camheight#, camz#
ENDIF
`left (a)
IF keystate(30)=1
camx# = newxvalue( camx#, wrapvalue( camera angle y() - 90 ), camspeed# )
camz# = newzvalue( camz#, wrapvalue( camera angle y() - 90 ), camspeed# )
position camera camx#, camheight#, camz#
ENDIF
`right (d)
IF keystate(32)=1
camx# = newxvalue( camx#, wrapvalue( camera angle y() + 90 ), camspeed# )
camz# = newzvalue( camz#, wrapvalue( camera angle y() + 90 ), camspeed# )
position camera camx#, camheight#, camz#
ENDIF
rem camera rotation
yrotate camera camera angle y() + mousemovex() * 0.3
xrotate camera camera angle x() + mousemovey() * 0.3
rem stops mouse from going upside down
IF wrapvalue( camera angle x( 0 ) ) > 80 AND wrapvalue( camera angle x( 0 ) ) < 180 THEN xrotate camera 0, 80
IF wrapvalue( camera angle x( 0 ) ) > 180 AND wrapvalue( camera angle x( 0 ) ) < 280 THEN xrotate camera 0, 280
if someone can convert this or explain how to , then i will be forever thankful, thanks