here's my code for collision with knif on the base-enemy (knife collides with enemy)
- Code: Select all
if (eh = 3)
{
DestroyActor("Event Actor");
}
else if (eh = 4)
{
DestroyActor("Event Actor");
}
here is my create actor code:
- Code: Select all
eh = 0;
and finally my draw actor for my enemy:
- Code: Select all
if (eh = 3)
{
DestroyActor("Event Actor");
}
else if (eh = 4)
{
DestroyActor("Event Actor");
}
PS: eh is my var for enemy health and lvel is my var for my charecters level. im trying to make it so that the higher my level is the more the knife hurts. in the beginning when i start the game my enemis all destroy. (i have clones)
thx in advance