Filterscript being called from a gamemode.
#1

Oh well, I've been trying to make a command which uses OnFilterScriptInit callback but the problem is that I need that certain callback to be called on OnGameModeInit callback, so what I wanted to ask is if I use the following command under OnGameModeInit will activate OnFilterScriptInit of the selected filterscript.
SendRconCommand("loadfs FILTERSCRIPT");

Will it?
Reply
#2

Yes, it'll activate OnFilterScriptInit, but you can't load a filterscript that's already loaded.

Take a look at CallRemoteFunction.
Reply
#3

Quote:
Originally Posted by Vince
Посмотреть сообщение
Yes, it'll activate OnFilterScriptInit, but you can't load a filterscript that's already loaded.

Take a look at CallRemoteFunction.
Ehm, I tried adding it on the filterscripts in server.cfg, but it was not called. ( I assume so as the function did not work/happen )

I tried using CallRemoteFunction, I can't understand it. :/

Thank you for the reply though.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)