Posts: 2,322
Threads: 260
Joined: Jul 2010
Reputation:
0
i have a question on a npc bot?
How can i like, i made a bot that drives a bus he works and all but how can i make that when he's stopped a message to all appears saying bus ha stopped?
Posts: 1,594
Threads: 61
Joined: Oct 2009
Reputation:
0
Well, there are 2 possibilities:
• Use a timer that checks the Speed of your NPC, and if it is 0, the message appears.
• Check, how long your NPS drives to the place where he stops, and make a timer with the time of the driving time. E.g: NPC drives 2 minutes => Timer of 120000ms.
I can't think of any other ways.
I hope this helps you.
Posts: 1,594
Threads: 61
Joined: Oct 2009
Reputation:
0
Tell me how long the NPC drives untill he has reached his destination. Then I can create the timer for you (But not today anymore^^).