What make public and . . . Different
#5

Also CallRemoteFunction is used with public functions.
That way you can execute a function in a filterscript with code inside your gamemode for example.
This makes it possible to allow 2 separate scripts to exchange data between them.

You may have a filterscript which controls fuel for your vehicles.
Your gamemode could also create vehicles, but will require a function call to your filterscript to set/get fuel values for that vehicle.

If you don't use publics, you can't do this, as the function isn't "public" to the server and/or other scripts.
Reply


Messages In This Thread
What make public and . . . Different - by Raefal - 20.11.2014, 06:58
Re : What make public and . . . Different - by Dutheil - 20.11.2014, 07:28
Re: What make public and . . . Different - by Affan - 20.11.2014, 07:32
Re: What make public and . . . Different - by Vince - 20.11.2014, 08:36
Re: What make public and . . . Different - by PowerPC603 - 20.11.2014, 13:43

Forum Jump:


Users browsing this thread: 2 Guest(s)