Posts: 153
Threads: 64
Joined: Nov 2013
The title describes it, I want the meaning of "public" and the use of it, Why do we use it ?
Ex; public OnGameModeInit()
Posts: 2,137
Threads: 37
Joined: Oct 2012
Reputation:
0
A Public function can be called in a timer, needs to be forwarded and mostly returns something;
inside a public function there can be other functions, things to do.
Posts: 10,066
Threads: 38
Joined: Sep 2007
Reputation:
0
Only when it needs to be directly called by the server. Callbacks, timers, CallLocalFunction and CallRemoteFunction. That's it. You don't need public functions for anything else.
Posts: 450
Threads: 10
Joined: May 2014
Reputation:
0
Public is a keyword which helps us to make a globalized function which may or may not return a value.