rtfm;
Quote:
Originally Posted by plus-angelscript.html
Moreover, while onMain() fires once per gametick, onPlayer() fires once per local player per gametick, updating the referent of jjP/p each time. In other, non-player specific functions, jjP/p's referent may be unpredictable and should not be relied upon unless there is only one local player at all.
|
Ignore the "unless there is only one local player at all" though, p should actually be only used in onPlayer(), onPlayerTimerEnd() and onFunction#(), and, if not a bad design decision, would be a function parameter of those.
__________________
I am an official JJ2+ programmer and this has been an official JJ2+ statement.
Last edited by Sir Ementaler; Aug 20, 2013 at 04:53 AM.
|