Calling Timer Functions from outside the local script
#1

I'm just wondering, is it possible to call timer (public) functions from outside the script i'm actually using SetTimer(Ex) in?

I'm just wondering

Thanks,
Ash
Reply
#2

PHP код:
// ================= [ GM ] ================= //
forward Call();
public 
OnGameModeInit()
{
    
SetTimer("Call"5000false);
    return 
1;
}
public 
Call()
    return 
CallRemoteFunction("CreateExp""fffdd""1.0, 2.0, 3.0, 1, 5");
// ================= [ FS ] ================= //
forward CreateExp(Float:X,Float:Y,Float:Z,type,Float:diam);
public 
CreateExp(Float:X,Float:Y,Float:Z,type,Float:diam)
{
       
CreateExplosion(X,Y,Z,type,diam);
       
CreateExplosion(X+2,Y+2,Z+2,type,diam);
       
CreateExplosion(X+3,Y+3,Z+3,type,diam);

Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)