Help with object health!
#1

Hi everyone! I wan't to do that [ame]http://www.youtube.com/watch?v=7zqg5ILN_I8[/ame]
but i dont know how to get object health?
Can any1 help me?

BTW Sorry guys for my bad english,i'm from Croatia
Reply
#2

This is just a Variable which is setted
Like this
Every second Check
Is Player near object tree
Is Player anim chainsaw
Set var --
Var = Health
Reply
#3

and i have seen include for that.if anyone can find it,please send me pm.

EDIT: I have done this

stock IsPlayerNearObject(playerid,objectid,range){
new float:ObjX,float:ObjY,float:ObjZ;
GetObjectPos(objectid,ObjX,ObjY,ObjZ);
IsPlayerInRangeOfPoint(playerid,range,Obj:X,Obj:Y, Obj:Z);
return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)