Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   illusion? o.O (https://forums.graalonline.com/forums/showthread.php?t=29608)

RavenTelvecho 05-21-2002 04:16 AM

illusion? o.O
 
okay say your in a level and you want it to go for ever in a loop...
you keep walking and u get no where... ( water level ). Anyone know how I would go around this?

screen_name 05-21-2002 06:08 AM

make a blank level, then put this in the level
NPC Code:

//#CLIENTSIDE
if (created || timeout) {
playerx=32;
timeout=.05;
}


RavenTelvecho 05-21-2002 06:17 AM

but its going to be a water lv and its going to be textured...

mikepg 05-21-2002 06:31 AM

umm..
 
add links to each side of the level, bringing you back where you started from??

screen_name 05-21-2002 06:35 AM

Re: umm..
 
Quote:

Originally posted by mikepg
add links to each side of the level, bringing you back where you started from??
then do that

RavenTelvecho 05-21-2002 07:11 AM

but ive seen this one before where he scripted it and there was no level warping it was just so smooth and as u walked down u can see the loop starting...

Saga2001 05-21-2002 10:36 PM

Well yes, it is not that hard of a script, I saw the one scripted by Grim. All you really need to do is when the level starts, save the tiletypes in an array, and just loop it, not that hard. Although I don't think that Grim achieved it that way, it is very easy and very possible, I am wondering where this thread starter saw this? A leak or did someone else make it?

Projectshifter 05-23-2002 08:13 PM

Hrm... then i assume that this is something that g2k2 has or something? If you make it smooth edges then warps would be so simple, but the //#CLIENTSIDE would require an NPC server. So wouldn't it just depend on where he intends to use it?
---Shifter

BBflat 05-23-2002 08:16 PM

while (1)
{
}

That should be a pretty good infinite loop.


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

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