Number of posts : 3414 Age : 30 Location : Romania Navodari Warning : Personalized field : Nope Points : Registration date : 2008-01-18
Subject: Re: Make player immortal Wed Nov 05, 2008 12:12 am
I dunno cleo ask kotton or threep
gtamodder Rookie
Number of posts : 86 Age : 30 Warning : Personalized field : actualy, cj360 Points : Registration date : 2008-08-14
Subject: Re: Make player immortal Wed Nov 05, 2008 1:36 am
Yea that's what I thought but I'll wait a while so that one of them will see this otherwise I might just pm one of them.
Kotton High Carbs
Number of posts : 318 Location : super-CALI-fragilisticexpialidocious Warning : Personalized field : SUSPECT ...EVERYTHING Points : Registration date : 2008-04-01
Subject: Re: Make player immortal Wed Nov 05, 2008 7:48 pm
got your PM, thx for the patience -heh
anyways, hell idk man, just at quick glance, seems like you're using the wrong OC for the players health, and all the times I've seen something similar used, it's usually accompanied by a definition of the health first
it looks like OC 0223: is mainly used for characters defined with local variables and OC 08AF: is used for globally defined characters
you also didn't reset his health in label 271, don't know if that's one of your problems or not but it's a failure you can definitely address
you might also try "Actor.SetImmunities($PLAYER_ACTOR, 1, 1, 1, 1, 1)" instead of 02AB: because again, it looks like OC 02AB: is used in locally defined variables and not global
and why not try modifying the Object.Indestructibility to this.. "Player.Indestructibility($PLAYER_ACTOR) = true" or even "Object.Indestructibility($PLAYER_ACTOR) = true" I always wanted to see if it would work lol-
gtamodder Rookie
Number of posts : 86 Age : 30 Warning : Personalized field : actualy, cj360 Points : Registration date : 2008-08-14
Subject: Re: Make player immortal Thu Nov 06, 2008 5:24 am
Thx kotton gonna change that now, EDIT:but this comes up "Incorrect expression Player.Indestructibility($PLAYER_ACTOR) = true. One of the variables has unknown type, or operands are incompatible." :wtf: btw the max normal health is 250 right?
Kotton High Carbs
Number of posts : 318 Location : super-CALI-fragilisticexpialidocious Warning : Personalized field : SUSPECT ...EVERYTHING Points : Registration date : 2008-04-01
Subject: Re: Make player immortal Thu Nov 06, 2008 7:45 am
idk, I thought it was 200 normally and 250 after a certain point in the game... or am I thinking of VC? lol- and did you try the Object.Indestructibility($PLAYER_ACTOR) = true? that's the original expression(indigenous to local and globally controlled objects of course)
and I know all scripts don't use it but why don't you have:
00D6: if 0 0256: player $PLAYER_CHAR defined 004D: jump_if_false @
?
because 99.98% of cleo scripts do need that definition and with what your script does, you definitely need to utilize it
anyways, if you're still having problems, I would ask ZAZ, out of all of us that mess with scripts, he's by far the expert and to find him, you only need wave a peanut butter jelly sandwich in front of your screen while chanting "I sacrifice this sandwich for the greater good to the zazmahall... I sacrifice this sandwich for the greater good to the zazmahall..." then smash it on the screen, and he'll find you
gtamodder Rookie
Number of posts : 86 Age : 30 Warning : Personalized field : actualy, cj360 Points : Registration date : 2008-08-14
Subject: Re: Make player immortal Fri Nov 07, 2008 3:44 am
True EDIT: Was editing it with kottons help and reply's so here's what the whole code looks like:
The halo to cj half is for well just read it and you'll know. Does it work though??? PARTIALLY it makes the model change fine but ignores the Actor.SetImmunities($PLAYER_ACTOR, 1, 1, 1, 1, 1) line and just heals him after geting hurt. I defined the player so it should set him immortal! Anyone got any ideas on how to fix?