28.06.2011, 18:11
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
I'm just wondering
Thanks,
Ash
// ================= [ GM ] ================= //
forward Call();
public OnGameModeInit()
{
SetTimer("Call", 5000, false);
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);
}