OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: MACCO on 06 Oct 2003, 11:53:57

Title: make a pilot lay down on a bed
Post by: MACCO on 06 Oct 2003, 11:53:57
hi!!

i need some help with a script.

i want to make a pilot to lay down on a bed in a barrack. it will simulate or look like the pilot sleep in the bed

how do i ???

explain very simple, i can't editing so good
/macco
Title: Re:make a pilot lay down on a bed
Post by: Komuna on 06 Oct 2003, 15:41:44
Should be easy:

pilot switchMove "Animation"

pilot setpos ["the abciss of the bed's position - number","the ordinate of the bed's position - number", "the bed's height - number"]

Notice that "Animation" should be one of the "dead" (without blood) animations available in OFP... It will look nice.
Title: Re:make a pilot lay down on a bed
Post by: Blanco on 06 Oct 2003, 17:18:06
try

unitname switchmove "deadstate" in a WP

Title: Re:make a pilot lay down on a bed
Post by: MACCO on 06 Oct 2003, 21:32:39
thanx, will try it