View Single Post
Seren Seren's Avatar

JCF Member

Joined: Feb 2010

Posts: 864

Seren is a name known to allSeren is a name known to allSeren is a name known to allSeren is a name known to allSeren is a name known to allSeren is a name known to all

Aug 20, 2013, 04:42 AM
Seren is offline
Reply With Quote
rtfm;
Quote:
Originally Posted by plus-angelscript.html View Post
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.