well ive been trying to get my spaceship to destroy wen it hits the asteroids, my cod is this
hp=2;
if(hp = 0)
{
destroyactor
}
but y wont it work??
int i;
i = 5;//This will make i equal five
i == 5;//This checks to see if i is equal to five
x++; // increases x by 1
x+=1; // increases x by 1
x=1; // sets x equal to 1
x==1; // checks if x is equal to 1
hp--;
if(hp<=0)
{
DestroyActor("Event Actor");
}
Users browsing this forum: No registered users and 1 guest