Home   Help Search Login Register  

Author Topic: Self-healing power  (Read 2601 times)

0 Members and 1 Guest are viewing this topic.

Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re:Self-healing power
« Reply #15 on: 15 Jun 2003, 18:35:09 »
u cn make it function so it wil faster onh checkin n all ;D

LCD OUT
"guess being the community has downsides .." - cheetah
Help Perfecting Da Next Best Thing - O-Team Beta

Nobby

  • Guest
Re:Self-healing power
« Reply #16 on: 16 Jun 2003, 12:29:50 »
the undead thing still happens, I don't get it.
I tried adding a

?not alive _u: goto "end"

#end
_u setdammage 1
exit

but that had no effect.
I also tried adding a playmove "combatdead"
but that didn't work.

This is really starting to bug me now.

Offline dmakatra

  • Members
  • *
  • Better known as Armsty
Re:Self-healing power
« Reply #17 on: 16 Jun 2003, 14:13:35 »
Does this really doesnÂ't work? Are u sure? IÂ've tried it like 50 times now and it always works!

Are u sure u got the right code?

Code: [Select]
_u = _this select 0

#loop
~0.1
?!alive _u: goto exit
_d=getdammage _u
?_d>0.1 and alive _u:_u setdammage (_d-0.01)
goto "loop"

#exit

exit

deaddog

  • Guest
Re:Self-healing power
« Reply #18 on: 16 Jun 2003, 14:23:02 »
If your mission.sqm is under 50K then attach it to a reply.  We might be able to figure it out if we can play the mission.  Better yet, export the mission as a single user mission and post the pbo file. That will give us all the scripts, too.

Thanks.

Nobby

  • Guest
Re:Self-healing power
« Reply #19 on: 17 Jun 2003, 13:14:40 »
I'll give this script a try now and then get back to you in a minute.
Cheers Guys

Nobby

Nobby

  • Guest
Re:Self-healing power
« Reply #20 on: 17 Jun 2003, 13:24:24 »
just tried it and... it's still a no go.
The first and second attempts went fine but on the third attempt he died and then magically got back up again, although I was still dead.

The .pbo file is huge, 4,921KB. So I don't know if you want me to post it, however, the glitch may occur in the units. I am using the invasion 1944 guys and they may have something in their .cpp files which stops them from quickly healing, but I don't know this for certain.

I'll keep on fiddling around with the script until I come to the conclusion.

Cheers

Nobby

Nobby

  • Guest
Re:Self-healing power
« Reply #21 on: 17 Jun 2003, 17:13:09 »
just found out the problem, I had an old trigger in the game which I forgot about which setdammage to 0 if damage went above 0.5, the deletion of this meant the script worked a treat.
Thanks again.

Nobby.

PS, If you wanna try out my mission then just ask, you do need the invasion 1944 demo and Flak 36 from WW2EC though.