ive managed to find out how to make something happen when any entity collides with an entity but how do i make only a specific entity react with another entity. like for example i have a powerup that can only be collected by touching it with the player and not when you shoot it with another entity or enemy entities collide with it.
#define id skill100
#define powerup 1
..
if (event_type == EVENT_ENTITY){ // fex
if (you) if (you.id == powerup) _do_something();
}
..
and in the other model say
Code:
..
my.id = powerup;
..
greets
Last edited by rayp; 01/07/1316:11.
Acknex umgibt uns...zwischen Dir, mir, dem Stein dort... "Hey Griswold ... where u gonna put a tree that big ?" 1998 i married my loved wife ... Sheeva from Mortal Kombat, not Evil-Lyn as might have been expected rayp.flags |= UNTOUCHABLE;
Re: collision with a specific entity
[Re: rayp]
#414832 01/08/1318:1201/08/1318:12
..
void _this_is_a_event(){
if (event_type....
}
..
action bla...
my.emask |= ENABLE_BLABLA
my.event = _this_is_a_event; // note not ()
Acknex umgibt uns...zwischen Dir, mir, dem Stein dort... "Hey Griswold ... where u gonna put a tree that big ?" 1998 i married my loved wife ... Sheeva from Mortal Kombat, not Evil-Lyn as might have been expected rayp.flags |= UNTOUCHABLE;
Re: collision with a specific entity
[Re: rayp]
#414862 01/09/1314:4601/09/1314:46
No problem. We all make mistakes every day. Im glad it works now. greets
Acknex umgibt uns...zwischen Dir, mir, dem Stein dort... "Hey Griswold ... where u gonna put a tree that big ?" 1998 i married my loved wife ... Sheeva from Mortal Kombat, not Evil-Lyn as might have been expected rayp.flags |= UNTOUCHABLE;
Re: collision with a specific entity
[Re: rayp]
#414935 01/10/1318:0601/10/1318:06