RE: Invisible AMFP meshes? (And Other Questions)
I hate double posting, but I want to bump this. I'm running into an issue. Basically I want to have wine bottles falling from the sky on a loop. I put the bottles up in the air (at different elevations so that they hit at different times) and then near the ground I have a script area and when they pass through it I start a timer (to give them time to hit and break) then run a resetprop script. But it's not working. They fall and hit once, break, vanish and then nothing. Here's the script I'm using for the sequence:
void OnStart()
{
AddEntityCollideCallback("WineFall1", "WineResetter", "ResetWine1", false, 1);
AddEntityCollideCallback("WineFall2", "WineResetter", "ResetWine2", false, 1);
AddEntityCollideCallback("WineFall3", "WineResetter", "ResetWine3", false, 1);
AddEntityCollideCallback("WineFall4", "WineResetter", "ResetWine4", false, 1);
}
void ResetWine1(string &in asParent, string &in asChild, int alState)
{
AddTimer("ResetWine1BTimer", 3, "ResetWine1B");
}
void ResetWine1B(string &in asTimer)
{
ResetProp("WineFall1");
}
void ResetWine2(string &in asParent, string &in asChild, int alState)
{
AddTimer("ResetWine2BTimer", 3, "ResetWine2B");
}
void ResetWine2B(string &in asTimer)
{
ResetProp("WineFall2");
}
void ResetWine3(string &in asParent, string &in asChild, int alState)
{
AddTimer("ResetWine3BTimer", 3, "ResetWine3B");
}
void ResetWine3B(string &in asTimer)
{
ResetProp("WineFall3");
}
void ResetWine4(string &in asParent, string &in asChild, int alState)
{
AddTimer("ResetWine4BTimer", 3, "ResetWine4B");
}
void ResetWine4B(string &in asTimer)
{
ResetProp("WineFall4");
}
Any idea what I'm doing wrong? and if this won't work, any other way to accomplish what I'm trying to do?
|