Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - kerath1999

Pages: [1]
1
Script / Respawn Enemy after 10 sec and Flying tied to mana bar
« on: 2006-08-26, 09:07:24 PM »
I have two issues here.  I am trying to make a game where you must kill enemies to gain mana, once you have mana then you have the ablity to fly.

I have gotten the enemies to add to my mana inventory through special fuctions,  That was easy.  Where I run into problems is linking my flight time to the inventroy.  I would perfer something like 1 mana= 1 sec. of flight.  So if you have 5 mana, then you are able to fly for 5 sec and the mana to auto drain. 

Now of course the player will mess up and miss where they need to go and fall out of flight.  So then I need enemy respawn.  I am thinking around 10 seconds.  I have found a way to call a special function to respawn the enemy and some script to do the timing, but I have to make a special fuction for each enemy.  Is there a way to say in script.  if any enemy is deleted then to respawn it back after 10 sec.  And it keep it's same path.  I would greatly appciate any help.

kerath1999

 

Pages: [1]