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 03-18-2006, 08:30 AM
underwood underwood is offline
Registered User
Join Date: Mar 2006
Posts: 27
underwood is on a distinguished road
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.
Reply With Quote
  #2  
Old 03-18-2006, 10:18 AM
Chicken_l33t Chicken_l33t is offline
Banned
Join Date: Sep 2002
Location: NewZealand
Posts: 467
Chicken_l33t is on a distinguished road
//#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;
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 07:54 AM.


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