Home   Help Search Login Register  

Author Topic: Have a unit start dead at beginning  (Read 1069 times)

0 Members and 2 Guests are viewing this topic.

Rocko Bonaparte

  • Guest
Have a unit start dead at beginning
« on: 01 Mar 2005, 06:14:46 »
When I set the damage of a unit at mission start, it kills them as expected.  However, they start alive and then fall down dead.  Is there a way to do this with any normal unit?  I saw some corpse objects among the stuff I have here, but I want a dead pilot.  I want the unit to start on the ground, dead.  

Offline Blanco

  • Former Staff
  • ****
Re:Have a unit start dead at beginning
« Reply #1 on: 01 Mar 2005, 07:52:03 »
Try to use an animation I just found like :

unit switchmove "combatdead"

There are many others, check Macguba's playmove/switchmove library in the editor depot.

"Combatdead willl make him start on the ground, but he isn't dead, this is actually a great animation to fake death, because when you use this on the player he can still moves his head and he is able to stand up again.
Search or search or search before you ask.

Offline nominesine

  • Former Staff
  • ****
  • I'm NOT back!
    • The IKB Forum
Re:Have a unit start dead at beginning
« Reply #2 on: 01 Mar 2005, 08:34:27 »
The problem is that your computer reads the "unit setDamage 1" after the mission has actually started. That's why you can see the pilot standing up for a brief second before he is setDamaged into oblivion. The switchMove technique will not make any difference. The solution is to put the setDamage command early in the init.sqs or directly in the player units initfield (these commands are executed first). I suggest the player units init field (not the pilot units). Simply write pilotName setDamage 1.
OFPEC | Intel Depot
RETARDED Ooops... Retired!

Offline RujiK

  • Members
  • *
  • KoKo Puh-Fizzles!
Re:Have a unit start dead at beginning
« Reply #3 on: 01 Mar 2005, 17:23:22 »
or you could just do what your doing and use a cover up  ;D
titlecut ["","Black in",5]
I like your approach, lets see your departure.
Download the New Flashlight Script!

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Have a unit start dead at beginning
« Reply #4 on: 01 Mar 2005, 17:31:02 »
Or just reduce the health slider to 0.
Plenty of reviewed ArmA missions for you to play

Dubieman

  • Guest
Re:Have a unit start dead at beginning
« Reply #5 on: 01 Mar 2005, 23:30:48 »
Um, switch move does work, you have to dind the right one like Blanco was saying. Dont pick the combatdying because that shows the unit falling, its always, combatdead, civildead...


Actually upon testing it, using the slider like Macguba says works as does using "this setdammage 1" in the units init field. He always ends up on the ground at the start of the mission. :P
« Last Edit: 01 Mar 2005, 23:33:44 by GuiltyRoachKillar »