so i think i figured out part of it.... when the entity is touched it passes the value player_close 1 or 2.

When i debug the code it stops at one or 2 so its catching the value and performing the action i tell it to. But the problem is once the value of player close is equal to anything else it wont preform the other action. can i only set a variable's value once or something? is there a better way to do this?