(07-14-2011, 07:16 AM)Paulpolska Wrote: Try this:
If(GetEntitiesCollide("A,"B") && if(GetSwingDoorLocked("door1")==false){
...
should work
Got an error, saying it's missing an "expected expression value" or something like that. now it says it's missing a parenthesis lol. okay, third time, here goes...
nope, he still broke through it in a pompous display of his brute strength (ha see what i did there)
for the "expected expression" thing i just removed the second "if" and kept everything else, also it was missing a parenthesis on the end so here's the version i got running but he still won't open the door:
if (GetEntitiesCollide("brute1","EnemyAtDoor") && (GetSwingDoorLocked("door1")==false)){
SetSwingDoorClosed("door1", false, false);
}