Graal Forums

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

underwood 03-18-2006 08:30 AM

Stuck.
 
Im makeing a house on editer and im getting messed up with doors and such. I can get it to warp good but my character is always faceing the way out the door again so he walks right back out. Is there a way to make him face a diffrent way when he enters a room? it would help lots thanks.

Chicken_l33t 03-18-2006 10:18 AM

//#CLIENTSIDE
function onPlayerenters(){
player.dir = dir (0 - up, 1 - left, 2 - down, 3 - right);
}

or for offline
//#CLIENTSIDE
if (playerenters){
playerdir = dir;
}

Replace "dir" with the number which is the direction you want e.g for up
playerdir = 0;


All times are GMT +2. The time now is 11:39 PM.

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