Graal Forums

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

pez307 08-29-2010 05:01 PM

Image help
 
Okay, so i have an image. I want to make it so i can walk under it, but then i want to be able to work ontop of it also. Basically abit like a bridge, could anybody help me?

Helps appretiated. :)

DrakilorP2P 08-29-2010 07:17 PM

Try this:

Quote:

attachplayertoobj(objecttype, id);
Attaches the player to an object, currently only npcs are
supported (objecttype=0); the id must be the id of the npc
you want to attach the player at
when the player is attached, you can do if (playerattached) to
check if he is attached; new player attributes playerattachid
and playerattachtype; new variables levelorgx,levelorgy for
getting the origin of the level/npc where the player is in

This command is good for all kinds of layers or moving
objects, together with the setshape2 command you can do
levels-in-levels things. It can be used for bridges,
ships, baloons, platforms in quests.
Don't forget to detach the
player when he should go back to the normal level. The
position of the player is not saved when he is on such
an npc.
This command is only allowed/enabled for upgraded servers


detachplayer();
Puts the player back into the normal level


All times are GMT +2. The time now is 04:45 AM.

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