void update_darkvision() { //move the nightvision light to the player's head sys.print( "Attaching light to head" ); $nightvision.setOrigin( $player1.getEyePos() + '0 0 0.01'); return; }