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
Want Enemies to Open Doors
bigfoot Offline
Member

Posts: 58
Threads: 12
Joined: Dec 2010
Reputation: 0
#5
RE: Want Enemies to Open Doors

I'm just wondering

but why do you do this:

if (GetEntitiesCollide("brute1","EnemyAtDoor") && (GetSwingDoorLocked("door1")==false)){
SetSwingDoorClosed("door1", false, false);
}

shouldn't it be:
if (GetEntitiesCollide("brute1","EnemyAtDoor")==true && GetSwingDoorLocked("door1")==false){
SetSwingDoorClosed("door1", false, false);
}

also,
Amnesia wiki script functions say this:

bool GetEntitiesCollide(string& asEntityA, string& asEntityB);

so GetEntitiesCollide(string& asEntityA, string& asEntityB); is either false or true. Which you don't have in your script.


If I am wrong, please do tell otherwise I'll keep telling people wrong things and we don't want that do we? :p
(This post was last modified: 07-14-2011, 09:48 AM by bigfoot.)
07-14-2011, 09:47 AM
Find


Messages In This Thread
Want Enemies to Open Doors - by convolution223 - 07-14-2011, 06:45 AM
RE: Want Enemies to Open Doors - by Paulpolska - 07-14-2011, 07:16 AM
RE: Want Enemies to Open Doors - by Paulpolska - 07-14-2011, 07:34 AM
RE: Want Enemies to Open Doors - by bigfoot - 07-14-2011, 09:47 AM
RE: Want Enemies to Open Doors - by Kyle - 07-14-2011, 02:52 PM
RE: Want Enemies to Open Doors - by nemesis567 - 07-14-2011, 03:31 PM
RE: Want Enemies to Open Doors - by Kyle - 07-14-2011, 06:11 PM
RE: Want Enemies to Open Doors - by nemesis567 - 07-14-2011, 06:19 PM
RE: Want Enemies to Open Doors - by Dizturbed - 07-14-2011, 09:39 PM
RE: Want Enemies to Open Doors - by nemesis567 - 07-14-2011, 10:34 PM
RE: Want Enemies to Open Doors - by ferryadams11 - 07-15-2011, 02:29 PM



Users browsing this thread: 1 Guest(s)