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
Is there an entity for "any"
DRedshot Offline
Senior Member

Posts: 374
Threads: 23
Joined: Jun 2011
Reputation: 11
#4
RE: Is there an entity for "any"

I don't think the wildcard '*' is supported in SetEntityPlayerInteractCallback, so unfortunately you might have to do it the long way.
Try doing this: SetEntityPlayerInteractCallback( * , "MonsterAttack", true);
I don't have a clue whether it will work, if it doesn't, try suffixing all entities in that room with a number, and calling a for-loop like so:

for(int i=1;i<=10;i++){SetEntityPlayerInteractCallback("entity_"+i , "MonsterAttack" , true);}

(Doing it this way would require renaming every object in that room to "entity_1" "entity_2" and so on, Instead, you might want to set an interact callback in the level editor, by typing "MonsterAttack" (without quotes) in the PlayerInteractCallback box, which can be found by clicking an object, and clicking the tab at the top right)

(This post was last modified: 04-15-2012, 06:26 PM by DRedshot.)
04-15-2012, 06:21 PM
Find


Messages In This Thread
Is there an entity for "any" - by Theforgot3n1 - 04-15-2012, 05:48 PM
RE: Is there an entity for "any" - by DRedshot - 04-15-2012, 06:21 PM
RE: Is there an entity for "any" - by DRedshot - 04-15-2012, 06:39 PM
RE: Is there an entity for "any" - by JetlinerX - 04-16-2012, 03:01 AM



Users browsing this thread: 1 Guest(s)