hmmm in my case sadly not. Error

Cannot convert POINTR to 'struct ENTITY'

Edit again: There are 2 problems this is getting the hit TARGET but there is an additional problem decribed in the following post
laugh sorry for to much posts

I still suppose, that I haven`t found the right (english) description for my problem. This must be absolute basic laugh

- I have a variable ammount of enemies created by ent_create
- I have a variable ammount of bombs

Any bomb can hit any enemy. If (HIT_TARGET), there are a lot of things to do:

- remove bomb
- remove enemy
- count up score
- play sound
- particle effect

So if I create functions which are called by if(HIT_TARGET) the functions have to know which ENTITIES (bomb OR enemy) depend on.

Now I check (HIT_TARGET) on my bombs and try to ent_remove(enemy). functionname(enemy) should work, to. But it doesn`t. I am sure solution with an array of enemies is not the right solution.

I supposed that I can call the TARGET by "you". But doesn`t work. (see above: players ENTITY is "you"). Very weird, because it got not HIT. So how do I get the information which enemy is HIT?


German:
Das HIT_TARGET treibt mich echt in den Wahnsinn. Habe ich das Problem einigermaßen verständlich beschrieben? Bis jetzt habe ich das Gefühl: NEIN laugh

Es muss doch ultra simpel sein, die getroffene ENTIY an (HIT_TARGET) zurück zu geben. Wozu sollte die Funktion sonst sein?

Last edited by Ditje; 08/02/10 18:37.