Page 1 of 1
Damage
Posted:
Tue Apr 24, 2007 2:19 pm
by Tytan McAnguns-PL
What i must write to damage enemy actor.
(shot collizion to enemy actor - 1 health)
limited the ammo and ammo package.
Help
Posted:
Tue Apr 24, 2007 5:29 pm
by Troodon
Make a variable called health. Make a create actor function and add there health = 100 for example. Then in collision write: health -= 1.
Tell me if you need more help.
Posted:
Wed Apr 25, 2007 7:01 am
by Tytan McAnguns-PL
What to health 0 to destroy event actor?
Posted:
Wed Apr 25, 2007 12:44 pm
by Troodon
In script editor
if (health <= 0)
{
DestroyActor("youractor");
}
Posted:
Wed Apr 25, 2007 4:02 pm
by Tytan McAnguns-PL
tekdino wrote:In script editor
if (health <= 0)
{
DestroyActor("youractor");
}
In where script editor?
Create Actor?
Posted:
Wed Apr 25, 2007 4:03 pm
by Troodon
In the draw actor of your actor.
Posted:
Wed Apr 25, 2007 4:15 pm
by Tytan McAnguns-PL
Thanx and limited the ammo and package.
And get the new weapon to have this?
Posted:
Wed Apr 25, 2007 4:23 pm
by Troodon
your actor -> collision -> any side of ammo package
- Code: Select all
ammo += 10
Replace with 10 the amount.
Then when you shoot
- Code: Select all
if (ammo >= 1)
{
the shoot event
}
if (ammo <= 0)
{
ammo = 0;
}
Posted:
Sat Apr 28, 2007 7:27 am
by Tytan McAnguns-PL
What in the "the shoot event" ?
I mast this have got !
Posted:
Sat Apr 28, 2007 4:50 pm
by Troodon
The thing how you shoot. For example:
- Code: Select all
CreateActor("shot actor", "shot animation", "no parent", "no path", 0, 0, false);