|
| 27 Jul 2016 03:01 AM |
So I created a NPC that moves from point A to B to C and again in a loop,How do I make him stop and wait 5 sec in point A for example. ty, |
|
|
| Report Abuse |
|
|
HLVM
|
  |
| Joined: 05 Jan 2015 |
| Total Posts: 193 |
|
|
| 27 Jul 2016 03:53 AM |
Use Wait()
#code while true do print('You Crashed!') end |
|
|
| Report Abuse |
|
|
|
| 28 Jul 2016 08:55 AM |
| What should I put or should not in the : () |
|
|
| Report Abuse |
|
|
casperm8
|
  |
| Joined: 15 Sep 2008 |
| Total Posts: 425 |
|
|
| 28 Jul 2016 08:56 AM |
Wait Wait (t) or wait (t)
See also: Thread scheduler Yields the current thread until t seconds have elapsed. If t is not specified, then it yields for a very short period of time (usually close to 1/30th of a second). The function returns 2 values: The elapsed time and the current place time.
wiki definition |
|
|
| Report Abuse |
|
|