Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 08-29-2010, 05:01 PM
pez307 pez307 is offline
ImThatGuy
pez307's Avatar
Join Date: Apr 2007
Posts: 58
pez307 is an unknown quantity at this point
Cool 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.
__________________
Cm*
Reply With Quote
  #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
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 03:17 AM.


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