![]() |
Function Execution
It would be nice to have a way to speed up, slow down or pause the execution of individual functions.
I was working on something where I wanted all my objects to get loaded before I send the information to the player with a "public function onPlayerLogin(pl)", but the loading of the objects is done "onCreated". |
so, why won't onCreated work?
|
Hmm, well I don't know if it helps much, but things are executed in order from top to bottom, so if you do the loading before the functions, it should load beforehand.
|
That's why they made functions such as scheduleevent and so forth.
|
OnCreated() is working. Lol, I just need to pause the execution of onPlayerLogin so I make sure the vars are loaded properly. I do suppose I can set an extra var and use scheduleevent and add a function Gambet.
|
I usually do something like
PHP Code:
|
Quote:
Indeed you can. :) |
You could use waitfor() for a non-existing event, Stefan recommended that.
|
| All times are GMT +2. The time now is 01:47 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.