03-03-2013, 09:47 PM
I want to make two messages and the first message should never seen again, while only the second message should be shown after entering an area, which is inactive now
The code:
but somehow the void C part is just ignoring. Why?
The code:
PHP Code:
void OnStart()
{
AddEntityCollideCallback("Player" , "Area1" , "A" , true , 1);
AddEntityCollideCallback("Player" , "Area2" , "C" , true , 1);
}
void A(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("object", true);
SetMoveObjectState("object", 1.0);
PlaySoundAtEntity("", "sound.snt", "object", 1.5f, false);
SetMessage("Message", "SampleText", 4);
AddTimer("", 4, "Hand2");
}
void B(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("Area2", true);
}
void C(string &in asParent, string &in asChild, int alState)
{
PlaySoundAtEntity("", "Sound.ogg", "object", 1.5f,
SetMessage("Message2", "SampleText", 3);
}
but somehow the void C part is just ignoring. Why?