Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   moving? (https://forums.graalonline.com/forums/showthread.php?t=15763)

jonny12 10-30-2001 06:17 AM

moving?
 
how can i make somthing move randomly?

like the light effect in the new player house?

thanks

Faheria_GP2 10-30-2001 06:48 AM

if (playerenters) timeout=.05;
if (timeout) {
dir=random;
x+=vecx(dir);
y+=vecy(dir);
timeout=.05;
}

LOEV ME AND MY CRAP SCRIPT

LiquidIce00 10-30-2001 12:43 PM

Quote:

Originally posted by Faheria_GP2
if (playerenters) timeout=.05;
if (timeout) {
dir=random;
x+=vecx(dir);
y+=vecy(dir);
timeout=.05;
}

LOEV ME AND MY CRAP SCRIPT

wouldnt work u messed up on the random =\

if (timeout) {
this.dir=int(random(0,3));
x+=vecx(this.dir);
y+=vecy(this.dir);
timeout=.05;
}

or its 0,4 i forgot

jonny12 11-03-2001 06:38 AM

?-no
 
no
that is all messed up

i need it like in the new player houses...

anyone else know how?

SSRobgeta 11-03-2001 08:14 AM

A Quote:
One who dies... Well... Dies

Vinvect 11-03-2001 09:20 AM

Quote:

Originally posted by SSRobgeta
A Quote:
One who dies... Well... Dies

STOP SPAMMING! GRR!


All times are GMT +2. The time now is 03:12 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.