Actor Problem
#2

You simply create a global variable as [MAX_ACTORS] and when you SetAnim for an actor, you set that variable for that actorid to true, or to 1. When the actor finishes serving someone, you set it back to false, or to 0. And when someone interacts with an actor, you check if that actorid's variable is false or true, 0 or 1. If it's false, then for example the actor is not busy, and allows the interaction. If it's 1 or true, then the actor is busy and send that message to him.
Reply


Messages In This Thread
Actor Problem - by hoanduy - 15.11.2017, 03:02
Re: Actor Problem - by Jaxium - 15.11.2017, 03:21
Re: Actor Problem - by hoanduy - 15.11.2017, 03:29
Re: Actor Problem - by Ritzy2K - 15.11.2017, 05:07
Re: Actor Problem - by hoanduy - 15.11.2017, 10:46

Forum Jump:


Users browsing this thread: 1 Guest(s)