Library util
Utility library. Contains functions that don't belong anywhere else.
Functions
| isFirstTimePredicted() | Returns whether the current event is being called for the first time. |
| isInWorld( pos ) | Returns true if the given position is inside the world boundaries. |
Functions
- util.isFirstTimePredicted()
-
Returns whether the current event is being called for the first time. Only has meaning inside predicted events, such as "playerbuttondown".
Environment:
SharedReturn value:
(boolean)True if the current event call is the first prediction. - util.isInWorld( pos )
-
Returns true if the given position is inside the world boundaries.
Environment:
SharedParameters:
-
pos: The position vector to check.
Return value:
(boolean)True if the given position is inside the world, false otherwise. -