Thread: Image help
View Single Post
  #2  
Old 08-29-2010, 07:17 PM
DrakilorP2P DrakilorP2P is offline
Registered User
DrakilorP2P's Avatar
Join Date: Apr 2006
Posts: 755
DrakilorP2P is just really niceDrakilorP2P is just really nice
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
Reply With Quote