Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Updated]Invisible AMFP meshes? (And Other Questions)
DeAngelo Offline
Senior Member

Posts: 263
Threads: 26
Joined: Feb 2013
Reputation: 11
#40
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?

A Late Night Drink http://www.moddb.com/mods/a-late-night-drink
Check out my LP channel, CatBearGaming, I take all Custom Story requests!
08-14-2014, 08:45 PM
Find


Messages In This Thread
RE: Invisible AMFP meshes? - by Artsy - 07-20-2014, 11:36 PM
RE: Invisible AMFP meshes? - by DeAngelo - 07-20-2014, 11:53 PM
RE: Invisible AMFP meshes? - by Daemian - 07-21-2014, 03:32 AM
RE: Invisible AMFP meshes? - by DeAngelo - 07-21-2014, 05:44 AM
RE: Invisible AMFP meshes? - by DeAngelo - 07-22-2014, 08:52 AM
RE: Invisible AMFP meshes? - by Mudbill - 07-22-2014, 11:00 AM
RE: Invisible AMFP meshes? - by Daemian - 07-22-2014, 07:49 PM
RE: Invisible AMFP meshes? - by DeAngelo - 07-22-2014, 08:02 PM
RE: Invisible AMFP meshes? - by Mudbill - 07-22-2014, 09:34 PM
RE: Invisible AMFP meshes? - by DeAngelo - 07-22-2014, 10:37 PM
RE: Invisible AMFP meshes? - by Daemian - 07-23-2014, 12:31 AM
RE: Invisible AMFP meshes? - by Mudbill - 07-23-2014, 01:11 AM
RE: Invisible AMFP meshes? (And Other Questions) - by DeAngelo - 08-14-2014, 08:45 PM



Users browsing this thread: 7 Guest(s)