Gamestudio Links
Zorro Links
Newest Posts
zorro 64bit command line support
by 7th_zorro. 04/20/24 10:06
StartWeek not working as it should
by jcl. 04/20/24 08:38
Data from CSV not parsed correctly
by jcl. 04/20/24 08:32
Zorro FIX plugin - Experimental
by jcl. 04/20/24 08:30
folder management functions
by VoroneTZ. 04/17/24 06:52
lookback setting performance issue
by 7th_zorro. 04/16/24 03:08
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:46
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (7th_zorro, 1 invisible), 581 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
EternallyCurious, howardR, 11honza11, ccorrea, sakolin
19047 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