05-18-2019, 11:46 AM
hello, i need an action that ONLY opens a door if its closed.
I searched about this action on the forum already but the only one i fouind is this one down below.
-----> "usedoor(number X, number Y, number Z, string action) [boolean]: Open or close a door on specified location. Action parameter must be 'open' or 'close'."
but this function will open OR close depending if the door is opened or closed. for example. when the bot is finnished depositing in city and when its going back to hunting spawn there is a door that it needs to pass, and if that door is already opened, it will CLOSE the door and it cant go to the next waypoint. so i need a action that ONLY OPENS the door if its closed else just walk to next waypoint.
for example something like this = if x,y,z if closed, then open, if opened already, else go to next waypoint.
I searched about this action on the forum already but the only one i fouind is this one down below.
-----> "usedoor(number X, number Y, number Z, string action) [boolean]: Open or close a door on specified location. Action parameter must be 'open' or 'close'."
but this function will open OR close depending if the door is opened or closed. for example. when the bot is finnished depositing in city and when its going back to hunting spawn there is a door that it needs to pass, and if that door is already opened, it will CLOSE the door and it cant go to the next waypoint. so i need a action that ONLY OPENS the door if its closed else just walk to next waypoint.
for example something like this = if x,y,z if closed, then open, if opened already, else go to next waypoint.