OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: 456820 on 19 Dec 2004, 17:23:56

Title: dont lie down
Post by: 456820 on 19 Dec 2004, 17:23:56
how can i get a group to carry on running full speed with enemy machine gun firing at them ?
Title: Re:dont lie down
Post by: greg147 on 19 Dec 2004, 17:28:42
I tried to do this once, and for some reason, found this worked.

in leaders init field:

this setunitpos "UP"

Even if the leader is killed, the whole group stayed standing  ???
Title: Re:dont lie down
Post by: Dionysos on 19 Dec 2004, 19:10:32
Great! I have been trying to make a cutscene where a couple of prisoners are executed in an enemy camp. When the executioner fired, all other characters hit the dirt. This, of course, looked very ugly. I'll try this to keep them standing.  :D
Title: Re:dont lie down
Post by: RedHouse on 19 Dec 2004, 20:40:11
it only effects the unit not the whole squad
Title: Re:dont lie down
Post by: nmanjar on 20 Dec 2004, 02:12:58
I found that a simpler [perhaps more crude method] is setting their attitudes to careless, depends what else you're going for though.
Title: Re:dont lie down
Post by: Shove It on 20 Dec 2004, 08:27:47
The setunitpos thing is a good idea. I use it all the time but the only porblem is that instead of sprinting continuously they often tend to walk looking down the sight which looks very imbecilic. Does that make sense.
Title: Re:dont lie down
Post by: greg147 on 20 Dec 2004, 09:34:37
If you use the SetPos thing, and then put the waypoint as "Full" speed, then they'll sprint all the way.  ;)
As for the only works on the leader bit, I don't know how it happened. I was going to put it on every unit in my charge, but I wanted to see if it worked first, so I just put it in the leaders init field. From then on, the entire squad just stood up, and stayed standing when the next leader took over  ???