Help with object health! - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Help with object health! (
/showthread.php?tid=372478)
Help with object health! -
bero1711 - 26.08.2012
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
AW: Help with object health! -
dalkgamler - 26.08.2012
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
Re: Help with object health! -
bero1711 - 26.08.2012
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;
}