generated from Jaysyn/ModuleTemplate
Initial commit
Initial commit
This commit is contained in:
28
_module/nss/orw_mod_user.nss
Normal file
28
_module/nss/orw_mod_user.nss
Normal file
@@ -0,0 +1,28 @@
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// Olander's Realistic Weather System
|
||||
// orw_mod_user
|
||||
// By Don Anderson
|
||||
// dandersonru@msn.com
|
||||
//
|
||||
// This is Called from the Module OnUser Event
|
||||
//
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
void main()
|
||||
{
|
||||
object oMod = GetModule();
|
||||
|
||||
//From Module Onload Event
|
||||
int nWEATHERGLOBAL = GetLocalInt(oMod,"WEATHERGLOBAL");
|
||||
if(nWEATHERGLOBAL == 0) return;
|
||||
|
||||
//Now we get the areas that have the Weather Waypoint
|
||||
int nNth = 0;
|
||||
object oTVar = GetObjectByTag("T_VARIABLES",nNth);
|
||||
while(GetIsObjectValid(oTVar))
|
||||
{
|
||||
AssignCommand(oMod,ExecuteScript("orw_area_weather",oTVar));
|
||||
nNth++;
|
||||
oTVar = GetObjectByTag("T_VARIABLES",nNth);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user