Vladimir_Berkov 0 Posted July 28, 2005 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
Bikecop 0 Posted July 28, 2005 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
deathsai 0 Posted July 28, 2005 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
nominesine 0 Posted July 28, 2005 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
Vladimir_Berkov 0 Posted July 29, 2005 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
Vladimir_Berkov 0 Posted July 29, 2005 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
Garcia 0 Posted July 29, 2005 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 Share this post Link to post Share on other sites
Vladimir_Berkov 0 Posted July 29, 2005 I am pretty new to this. How do I find out what the name of the group is? Share this post Link to post Share on other sites
Chuck. 0 Posted August 19, 2005 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" but that dind't work So anyone knows what to type? Share this post Link to post Share on other sites
Garcia 0 Posted August 19, 2005 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
kallex 0 Posted August 19, 2005 Hi Fella's, to add a question in this topicDuring 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" 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 ) and switchMove command forces crouch animation for unit. Share this post Link to post Share on other sites
Chuck. 0 Posted August 19, 2005 Hi Fella's, to add a question in this topicDuring 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"  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  ) 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 damn Anyone else can get it working? Share this post Link to post Share on other sites
deanosbeano 0 Posted August 19, 2005 duplictae oops Share this post Link to post Share on other sites
deanosbeano 0 Posted August 19, 2005 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
Garcia 0 Posted August 19, 2005 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
Chuck. 0 Posted August 20, 2005 i cant try the AI disable before i get the crouch move wright So first i need a solution for crouching ( or am i wrong? ) Share this post Link to post Share on other sites
deanosbeano 0 Posted August 20, 2005 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 . 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 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
Chuck. 0 Posted August 20, 2005 deanosbeano We are getting close  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 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
deanosbeano 0 Posted August 20, 2005 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
Chuck. 0 Posted August 20, 2005 same effect when you put in in the waypoint  and i aint pretty advanced in this stuff, just started into al this stuff although i'm playing the game since it was released. so sqs is out for me i dont get that stuff  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  Share this post Link to post Share on other sites
deanosbeano 0 Posted August 20, 2005 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
Chuck. 0 Posted August 20, 2005 i will keep you in touch Thanks Share this post Link to post Share on other sites