Hey guys,
I've been a way for a while, but now i'm out of summer school, and i'm back from vacation. It's back to work on the new Matrix Mod for me. I tackled those mines again with a buddy of mine tonight, and got them pretty much finished. Only problem is I want to be able to shoot them and have them blow up. So I used this code:
Code:
//creation
entity_set_float(entity,EV_FL_takedamage,1.0)
entity_set_float(entity,EV_FL_health,50.0)
//check hp
new float:ENTHP = entity_get_float(entity, EV_FL_health)
client_print (0, print_console, "Mine HP = %f", ENTHP)//debug print
if (ENTHP <= 0.0)
BOOM = true
Boom is a boolean that when true the mine explodes. Obviously the mine is an entity. Everything works fine, except according to my console the mine doesn't take damage. It stays at 50.0000 hp no matter how many clips I put into it; and of course it doesn't explode. Anyone know what the problem is?
P.S. I'm loving my kara.. plz give me a bit

I shouldn't be fucked over for going to summer school and going on vacation.
EDIT:
OK, let's take this a bit further, seems how it's for the new matrix mod, i'm toying with the idea of a minesweeper. How would I go about doing that? I could easily do it if it was a person using get_user_aiming, but it wont return entities will it? Basically I just need to know when someone is aiming at the entity, and which entity it is, then I can take it from there. Not sure how I would go about doing that though. Anybody give me a hand? Thanx
__________________
"What then is truth? Truths are illusions which we have forgotten are illusions - they are metaphors that have become worn out... this (truth) is the duty to lie according to a fixed convention.
-Friedrich Nietzsche