I have two playable characters in my game, which the player is supposed to be able to switch between (EDIT: By pressing Q or E). If the variable jchar = 0, you play as character 1, if jchar = 1, you play as character 2. For some reason, i can't get it to work. I have an entity with this action:
ACTION character_control {
IF (jchar == 0){
IF (key_q == 1){
jchar = 1;
}
}
ELSE {
IF (key_e == 1){
jchar = 0;
}
}
}
But when i press Q or E, nothing happens. What could be the problem?