Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Checking the position of entities
dragonlordsd Offline
Member

Posts: 112
Threads: 7
Joined: May 2011
Reputation: 0
#4
RE: Checking the position of entities

In my experiments, I managed to make this work:

AddUseItemCallback("", "test_contain", "flask_5", "JarOnFlask", true);

void JarOnFlask(string &in asItem, string &in asEntity)
{
if(GetEntitiesCollide("flask_5", "ScriptArea_1"))
{
CreateEntityAtArea("test_key", "key_study", "ScriptArea_2", false);
}
}

...but it feels kind of awkward. I like Acies' suggestion, but I don't know how to write that into the code.
(This post was last modified: 05-05-2011, 08:52 PM by dragonlordsd.)
05-05-2011, 08:51 PM
Find


Messages In This Thread
RE: Checking the position of entities - by Acies - 05-05-2011, 08:46 PM
RE: Checking the position of entities - by dragonlordsd - 05-05-2011, 08:51 PM
RE: Checking the position of entities - by Acies - 05-05-2011, 08:58 PM
RE: Checking the position of entities - by Apjjm - 05-05-2011, 09:18 PM
RE: Checking the position of entities - by Acies - 05-05-2011, 09:28 PM
RE: Checking the position of entities - by Acies - 05-05-2011, 09:59 PM
RE: Checking the position of entities - by Acies - 05-06-2011, 12:31 AM
RE: Checking the position of entities - by Apjjm - 05-06-2011, 02:33 AM
RE: Checking the position of entities - by Acies - 05-06-2011, 03:10 AM



Users browsing this thread: 1 Guest(s)