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
Double if(GetEntitiesCollide - Problem [SOLVED]
Omyn Offline
Junior Member

Posts: 13
Threads: 2
Joined: Jul 2012
Reputation: 0
#2
RE: Double if(GetEntitiesCollide - Problem

(07-13-2012, 04:32 PM)beecake Wrote: Hello smart people ^^

I have a problem with my if-statement.
The error is: Expected exrpession value.

My script is:


void OnCollide_3(string &in asParent, string &in asChild, int alState)
{
if(GetEntitiesCollide("stone_med01_brown_1", "ScriptArea_2") == true) && if(GetEntitiesCollide("stone_med01_brown_2", "ScriptArea_2") == true) <-- Points to this line
{
FadeOut(0);
PlaySoundAtEntity("", "explosion_rock_large", "Player", 0.5f, false);
}
}

But what is wrong.. I can't seem to figure it out myself..
I'm no expert in c++ but i think for a multiple condition if statement, you only need one "if" then enclose both conditions wothin the parenthesis seperated by the &&.
07-13-2012, 06:00 PM
Find


Messages In This Thread
RE: Double if(GetEntitiesCollide - Problem - by Omyn - 07-13-2012, 06:00 PM



Users browsing this thread: 1 Guest(s)