![]() |
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.
|
//#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.