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
area problem
ExpectedIdentifier Offline
Member

Posts: 234
Threads: 10
Joined: Sep 2012
Reputation: 11
#6
RE: area problem

(03-04-2013, 02:33 AM)User01 Wrote:
(03-04-2013, 01:33 AM)Your Computer Wrote: Pass false to the second collision callback.
Do you mean
AddEntityCollideCallback("Player" , "Area2" , "C" , FALSE , 1); ?

I already tried that too and it didnt work.

There is no collide callback that calls function "B", so Area2 is never set to active. Try this:

PHP Code: (Select All)
void OnStart()
{
AddEntityCollideCallback("Player" "Area1" "A" true 1);
AddEntityCollideCallback("Player" "Area2" "C" false 1);
AddEntityCollideCallback("Player" "PUTSOMETHINGHERE" "B" true 1);
}


void A(string &in asParentstring &in asChildint alState)
{
    
SetEntityActive("object"true);
    
SetMoveObjectState("object"1.0);
    
PlaySoundAtEntity("""sound.snt""object"1.5ffalse);
    
SetMessage("Message""SampleText"4);
    
AddTimer(""4"Hand2");
}
    
void B(string &in asParentstring &in asChildint alState)    
{
     
SetEntityActive("Area2"true);
}

void C(string &in asParentstring &in asChildint alState)
{
     
PlaySoundAtEntity("""Sound.ogg""object"1.5ffalse);
     
SetMessage("Message2""SampleText"3);


You need to put in the area that you want the player to collide with to set Area2 active though. It's very confusing to try and see what you're doing though, so if this doesn't work explain again what the problem is.
03-04-2013, 02:50 AM
Find


Messages In This Thread
area problem - by User01 - 03-03-2013, 09:47 PM
RE: area problem - by No Author - 03-03-2013, 11:59 PM
RE: area problem - by User01 - 03-04-2013, 12:58 AM
RE: area problem - by Your Computer - 03-04-2013, 01:33 AM
RE: area problem - by User01 - 03-04-2013, 02:33 AM
RE: area problem - by ExpectedIdentifier - 03-04-2013, 02:50 AM



Users browsing this thread: 1 Guest(s)