Gamestudio Links
Zorro Links
Newest Posts
lookback setting performance issue
by 7th_zorro. 04/16/24 03:08
folder management functions
by 7th_zorro. 04/15/24 10:10
zorro 64bit command line support
by 7th_zorro. 04/15/24 09:36
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:48
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:46
LPDIRECT3DCUBETEXTUR
E9

by Ayumi. 04/12/24 11:00
Sam Foster Sound | Experienced Game Composer for Hire
by titanicpiano14. 04/11/24 14:56
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (Volkovstudio, 7th_zorro, Aku_Aku), 336 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
11honza11, ccorrea, sakolin, rajesh7827, juergen_wue
19045 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Stop on path, then resume #481972
11/29/20 07:59
11/29/20 07:59
Joined: Nov 2020
Posts: 2
K
Karakis Offline OP
Guest
Karakis  Offline OP
Guest
K

Joined: Nov 2020
Posts: 2
Is it possible to make an ai stop at a terminal or other location for a specified amount of time before proceeding to the next node?

Re: Stop on path, then resume [Re: Karakis] #481975
11/29/20 20:16
11/29/20 20:16
Joined: May 2005
Posts: 868
Chicago, IL
Dooley Offline
User
Dooley  Offline
User

Joined: May 2005
Posts: 868
Chicago, IL
I can't say I have tried it, but I don't see why not. Progress along a path requires the script to move an entity every frame.

If you have a variable that gets triggered on approaching another entity, then you would just not move the entity until, for instance, that variable reaches zero...

Code
path_spline(me,my.x,path_dist);
		
if(my.skill3 <= 0)
{
path_dist += 3 * time_step;
}
else
{
my.skill3 -= 1 * time_step;
}


So when they approach the terminal, or whatever, their skill3 is set to 100 (or some other number) this way it will stop moving along the path while skill3 counts down to 0...

Last edited by Dooley; 11/29/20 20:18.
Re: Stop on path, then resume [Re: Dooley] #481976
11/29/20 21:55
11/29/20 21:55
Joined: Nov 2020
Posts: 2
K
Karakis Offline OP
Guest
Karakis  Offline OP
Guest
K

Joined: Nov 2020
Posts: 2
ahhh I see, so I would play my animation for the worker at the terminal during the countdown process.. I think I got the idea. Thanks!

Re: Stop on path, then resume [Re: Karakis] #481978
11/30/20 02:41
11/30/20 02:41
Joined: May 2005
Posts: 868
Chicago, IL
Dooley Offline
User
Dooley  Offline
User

Joined: May 2005
Posts: 868
Chicago, IL
Sure thing!


Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1