For some reason when I put this in a void it gets an error e1513 which says I am referencing something that isn't there.

Code:
void goto_encounter() {

//put player in the encounter room
player.x = 0;
player.y = 0;
player.z = -300;

}



boolean my.awesomeness = so true;