Jump to content
Sign in to follow this  
Vladimir_Berkov

Stop people going prone?

Recommended Posts

I am trying to make a mission where I have a squad charge across a field to attack a position, but every time they come under fire they go prone.

Is there a way to force them to not go prone and to continue the attack until they reach a certain point (the enemy) before going prone?

Thanks.

Share this post


Link to post
Share on other sites

I use 'unit_name setunitpos "up" ' But I bet some of the super scripters here will pull off something more flashy.

Share this post


Link to post
Share on other sites

I wish there was an actual charge script, with the units firing as they sprinted. But it seems that you have to either deal with them standing in place and firing, or have to make them hold their fire as they dash towards the enemy.

Share this post


Link to post
Share on other sites

Use the setUnitPos "UP" command in combination with the allowFleeing command...

In the init field of the group leader, or in a script, you write:

{_x setUnitPos "UP"; _x allowFleeing 0} forEach units nameOfGroup

They will stay up while running and they will not go and hide when losses becomes too high (wich usually happens if you charger across a field without seeking cover).

Share this post


Link to post
Share on other sites

Great, thanks. Now, once they get to their destination how do I turn these settings off so they behave normally?

Share this post


Link to post
Share on other sites

Hmm, I have been testing it and I think I must be doing something wrong. I entered what you wrote in the initialization bar on all the group leaders but when they come under fire they all still hit the deck.

Share this post


Link to post
Share on other sites

you have to fill in the name of the group where it says nameOfGroup...

best way is to put:

{_x setUnitPos "UP"; _x allowFleeing 0} forEach units (group this) in the leaders init...

if you have filled in the group name, then there something fishy going on wow_o.gif

Share this post


Link to post
Share on other sites

Hi Fella's, to add a question in this topic

During a firefight i want some men to "stand" like this

" just "standing" in crouch, but i added a picture cause my english aint the best

so i thought to type in the init. field

'unit_name setunitpos "crouch" wink_o.gif

but that dind't work

So anyone knows what to type?

Share this post


Link to post
Share on other sites
I am pretty new to this.  How do I find out what the name of the group is?

use (group this) as group name, if you place it in the init field of the group leader.

Share this post


Link to post
Share on other sites
Hi Fella's, to add a question in this topic

During a firefight i want some men to "stand" like this

" just "standing" in crouch, but i added a picture cause my english aint the best

so i thought to type in the init. field

'unit_name setunitpos "crouch" wink_o.gif

but that dind't work

So anyone knows what to type?

It's not that simple. You need couple vommands for that. So put to init field something like this:

<unit> SetUnitPos "up"; <unit> SetBehaviour "combat"; <unit> switchMove "crouch"

So, SetUnitPos forces unit to stay up. SetBehaviour makes behaviour of unit to Combat, so unit can go crouch (you can't go to crouch with gun on your back wink_o.gif ) and switchMove command forces crouch animation for unit.

Share this post


Link to post
Share on other sites
Hi Fella's, to add a question in this topic

During a firefight i want some men to "stand" like this

" just "standing" in crouch, but i added a picture cause my english aint the best

so i thought to type in the init. field

'unit_name setunitpos "crouch"  wink_o.gif

but that dind't work

So anyone knows what to type?

It's not that simple. You need couple vommands for that. So put to init field something like this:

<unit> SetUnitPos "up"; <unit> SetBehaviour "combat"; <unit> switchMove "crouch"

So, SetUnitPos forces unit to stay up. SetBehaviour makes behaviour of unit to Combat, so unit can go crouch (you can't go to crouch with gun on your back  wink_o.gif ) and switchMove command forces crouch animation for unit.

<unit> SetUnitPos "up"; <unit> SetBehaviour "combat"; <unit> switchMove "crouch"

i've tried lots of things but i cant get the soldier to stay in crouch position wink_o.gif

damn banghead.gif

Anyone else can get it working?

Share this post


Link to post
Share on other sites

cant you just add _unit DisableAI "move"

to the above, i believe they still shoot. untested, just remember reading it.think its gotta be last command tho ?

found this too, dunno if its any use. but topics similar.if ya wanna make em not crouch. just alter the move name.

here

Share this post


Link to post
Share on other sites
cant you just add _unit DisableAI "move"

to the above, i believe they still shoot. untested, just remember reading it.think its gotta be last command tho ?

found this too, dunno if its any use. but topics similar.if ya wanna make em not crouch. just alter the move name.

here

disableAI "move" will make the units have to stand at that exact position forever. He won't be able to move for the rest of the mission. So it's not a good solution except if you want him to stay at that position for the rest of the missions :P

Share this post


Link to post
Share on other sites

i cant try the AI disable before i get the crouch move wright wink_o.gif

So first i need a solution for crouching

( or am i wrong? )

Share this post


Link to post
Share on other sites

ok try this ,my unit is called bob and his group called bobgrp.

in init field of leadunit put bobgrp = group this;bob setunitpos "up"

in other units of grp just put _nameofunit setunitpos "up"

in the waypoint or trigger ,whichever you want .as long as its not first wapoint put :

"_x switchmove {crouch}" foreach units bobgrp

dontforget to allowfleeing 0 too

if it dont work, sorry but i am outa ideas. maybe setcombatmode or behaviour ,could be your next move smile_o.gif.

at least your getting experience.

i am sure there is a way to undisableai "move i will find it.but try this without it for now.

try it smile_o.gif

hey garcia,where is your advice ? lol. you have 188 posts and still no help ? :P

Share this post


Link to post
Share on other sites

deanosbeano

We are getting close  tounge2.gif

the situtation now is

I give the group 2 Waypoints, the first is just to move somewhere, the second is to "enter" the trigger

Now when they enter the trigger they switchmove, but they switchmove while entering the trigger

so now you got like

the group is running, they stop one sec to "crouch" and stand up again and move on to the waypoint ( withch is located in the trigger ) and when they reach their waypoint they are still standing 'up"

so we still gotta fix that problem of still standing up

i was thinking about typing something like ,

disable move after they have entered the first trigger

wink_o.gif

you got any more tips?

( i did everything like you said, except the allow fleeing, but that shouldn"t make a difference )

Share this post


Link to post
Share on other sites

yep, put the statement in the last waypoint ,not the the trigger.

"_x switchmove {crouch}" foreach units bobgrp

or whatever your group is called. sometimes just the leader will crouch ,stupid ofp.

also you could make an .sqs script.

bob1 switch......

bob2........

bob3......... etc

unfortunately most times. my ways are the long way,but work .lol

but i didnt want to confuse ,if you not so advance.

Share this post


Link to post
Share on other sites

same effect when you put in in the waypoint  help.gif

and i aint pretty advanced in this stuff, just started into al this stuff tounge2.gif

although i'm playing the game since it was released.

so sqs is out for me

i dont get that stuff  wink_o.gif

anyway, looks like your having trouble to ,for finding a solution so maybe i just need to change my mission

anyway i'm gonna try some stuff out to get them into crouch position.maybe i'l find it

but thanks allot for the tips  notworthy.gif

Share this post


Link to post
Share on other sites

no problem ,if you tell me what ya want ,i will do it in a script.

a way to do is crouch and disable move. they will fire etc.

when you want them to move on ,you delete them, create new group that appear in car and drive off.

justa thought. message me with e-mail and what ya want i will make no problem,if i cant do ,i have many friends ,who are better than me at this.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×