OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: techn9ne on 24 Aug 2006, 23:32:20

Title: dead but alive
Post by: techn9ne on 24 Aug 2006, 23:32:20
Hey ppl is there any script that can make a unit look dead but still be alive?
any info gr8ly appreci8ed

marcus :afro:
Title: Re: dead but alive
Post by: JasonO on 25 Aug 2006, 14:23:00
Do you mean to fake death?
Or do you mean like zombies.
Title: Re: dead but alive
Post by: techn9ne on 25 Aug 2006, 15:29:19
Yeah to fake death, so far what ive done is set the units health to minimum and removed the units m16 but ive just got a soldier blood soaked but in a prone  possition but still looking alive.

marcus  :afro:
Title: Re: dead but alive
Post by: JasonO on 25 Aug 2006, 15:41:34
There is an animation to go dead. You can use the playmove command to do it.

OK To make a unit look like he has died you need to make this run in a script or trigger. Change unitname to what ever the unit is and then watch the guy fall.

Code: [Select]
UnitName PlayMove "CombatDyingVer2"
You will also want to have another line to make him get up so try something like this

Code: [Select]
_UnitName SwitchMove "CivilCombatTrans"
You need to play around with the timings etc for it to work well.
Title: Re: dead but alive
Post by: techn9ne on 25 Aug 2006, 16:00:39
ahhh excellent, just what i was looking for thanks alot  :good:

marcus :afro: