Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Future Improvements (https://forums.graalonline.com/forums/forumdisplay.php?f=10)
-   -   Blocking Clientside onChangeLevel(oldLevel, newLevel) (https://forums.graalonline.com/forums/showthread.php?t=134261195)

WhiteDragon 11-28-2010 04:38 AM

Blocking Clientside onChangeLevel(oldLevel, newLevel)
 
onChangeLevel(oldLevel, newLevel) would be called whenever you go through a level link, but the actual level change would not happen until this function returns.

This is critical for when you want to do something like disable weapons in the new level and you don't want that 0.05 second delay before it actually happens.

xAndrewx 11-28-2010 11:06 AM

good idea

fowlplay4 11-28-2010 06:23 PM

return false; (or true) Should prevent the level change from happening.

player.dontblock(); player.blockagain(); player.setshape();

Should work on client-side too.

salesman 11-28-2010 11:31 PM

Quote:

Originally Posted by fowlplay4 (Post 1613893)
return false; (or true) Should prevent the level change from happening.

player.dontblock(); player.blockagain(); player.setshape();

Should work on client-side too.

you read my mind


All times are GMT +2. The time now is 01:15 AM.

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