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"
Theforgot3n1 Offline
Member

Posts: 192
Threads: 20
Joined: Apr 2012
Reputation: 6
#5
RE: Is there an entity for "any"

(04-15-2012, 06:21 PM)DRedshot Wrote: 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 part:

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.

What do you mean? I'm a bit noobish. Big Grin




Confusion: a Custom Story - Ch1 for play!
http://www.frictionalgames.com/forum/thread-15477.html
About 50% built.
Delayed for now though!
04-15-2012, 06:35 PM
Website 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 Theforgot3n1 - 04-15-2012, 06:35 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: 5 Guest(s)