(09-18-2010, 12:40 AM)Alroc Wrote: For me it does not work at all. The debugMessage dont show up and the vase is not flying
here is my script:
My prop is named "Vase_01" and my area is "AreaFly01"
OnStart{
AddEntityCollideCallback("Player", "AreaFly01", "CollideAreaFly01", true, 1);
}
void CollideAreaFly01(string &in asParent, string &in asChild, int alState)
{
AddDebugMessage("Test 1-2 1-2 Flying object and ... action", false);
AddPropImpulse("Vase_01", 100.0f, 3.0f, 100.0f, "world");
}
As far as I can see, your OnStart is not correctly labeled, it should look like:
not
Also, this part below needs to be under
void OnEnter() as shown in the second box below
void CollideAreaFly01(string &in asParent, string &in asChild, int alState)
{
AddDebugMessage("Test 1-2 1-2 Flying object and ... action", false);
AddPropImpulse("Vase_01", 100.0f, 3.0f, 100.0f, "world");
}
to
void OnEnter()
{
}
void CollideAreaFly01(string &in asParent, string &in asChild, int alState)
{
AddDebugMessage("Test 1-2 1-2 Flying object and ... action", false);
AddPropImpulse("Vase_01", 100.0f, 3.0f, 100.0f, "world");
}
Let me know if there's anything else that you need help with.