z-K1LL_Sw1tch-z Posted June 4, 2019 Share Posted June 4, 2019 How do I set a peds health without it repeating the same script example when I try to kill that actor the actors health won't go down. {$CLEO .cs} //-------------MAIN--------------- 0000: NOP :NONAME_2 wait 0 0A8D: [email protected] = read_memory 12010640 size 4 virtual_protect 0 [email protected] += 4 0A8D: [email protected] = read_memory [email protected] size 4 virtual_protect 0 [email protected] = 0 :NONAME_46 0A8D: [email protected] = read_memory [email protected] size 1 virtual_protect 0 [email protected] += 1 if and [email protected] >= 0 128 > [email protected] else_jump @NONAME_143 005A: [email protected] += [email protected] // (int) if 87D6: not [email protected] == $PLAYER_ACTOR // @ == $ (int) else_jump @NONAME_143 0665: get_actor [email protected] model_to [email protected] 00D6: if 04A4: [email protected] == 280 // == constant else_jump @NONAME_143 Actor.Health([email protected]) = 250 else_jump @NONAME_143 :NONAME_143 [email protected] += 256 [email protected] > 35584 else_jump @NONAME_46 jump @NONAME_2 Sanmodder 1 Link to comment Share on other sites More sharing options...
Sanmodder Posted July 4, 2019 Share Posted July 4, 2019 see :) [email protected] = actor.Health([email protected]) if or [email protected] == 100 [email protected] <= 100 then if not [email protected] <> 100 then Actor.Health([email protected]) = 5000 end end Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now