So... do not use ExecuteScript.
Put the function call within the Main "block" of your Area Enter Script.
Put the include at the top of this Script.
// Area Enter Script
#include "00_weather"
void main()
{
object oPC = GetEnteringObject();
SetWeatherTemperate(oPC);
}
--- Not trying to steal anyone's thunder. I just thought this needed to be more explicit for the OP. Also, I do not know if this weather function is supposed to execute for every entering object in the area. Someone else will ahve to speak to this.
Modifié par henesua, 03 mai 2013 - 07:50 .