enemy leave key?

Posted By: Eagelina

enemy leave key? - 04/13/06 11:07

How do I make a enemy leave key when it is killed?
Kan someone direct me to a good tutorial or page about this?
thanks!
Posted By: 3MWe

Re: enemy leave key? - 04/13/06 12:55

simply add another script to the enemys action: for example:

action enemy{
robot_01; //the enemys main action
new_action; //the action to lose a key when the enemy is gore spitting and gonna die.
}
action robot_01{ [...] }
action new_action{
while(1){wait(1);
if(my._health<5) //my._health is the health-information of the enemy
{
create... //and so on
}}}
Posted By: Eagelina

Re: enemy leave key? - 04/15/06 14:55

Thanks I am going to try this code
© 2024 lite-C Forums