13.12.2012, 17:56
Quote:
The difference is that CallLocalFunction is not able to find any functions from other scripts on the server. For example if you have a public function "DoSomething" in one filterscript, you can do CallRemoteFunction("DoSomething", ...) in the gamemode or any other filterscripts (and undoubtedly the same filterscript as well). But CallLocalFunction would not work for functions outside of the loaded script's space.
CallRemoteFunction can be used to share data between scripts for example, but I'm fairly sure PVars (or perhaps GVars from Incognito's plugin or globalized versions of the datasets created using the CSTL plugin) do a better job at this. |
![Smiley](images/smilies/smile.png)