viibez 10 Posted October 20, 2009 Hey guys, i have been trying to setpos the units to stay "UP" standing, or "MIDDLE" for crouch but whenever enemy is present they go prone still, any tips much appreciated. i putting this in the init: this setUnitPos "UP"; this allowfleeing 0 i have not set a waypoint on the unit! Share this post Link to post Share on other sites
maddogx 13 Posted October 20, 2009 You could try preventing the unit from doing anything with this: [i]this[/i] [b]disableAI [/b]"ANIM" But remember to re-enable it (enableAI "ANIM") when you need him to start doing stuff again, otherwise he won't move a muscle. ;) Share this post Link to post Share on other sites
viibez 10 Posted October 21, 2009 You could try preventing the unit from doing anything with this: [i]this[/i] [b]disableAI [/b]"ANIM" But remember to re-enable it (enableAI "ANIM") when you need him to start doing stuff again, otherwise he won't move a muscle. ;) Yeah i want him to stand (or crouch) and shoot Share this post Link to post Share on other sites
.kju 3245 Posted October 21, 2009 Try editing the AI FSM. They are in the characters pbo from what I recall. Share this post Link to post Share on other sites
viibez 10 Posted October 22, 2009 Try editing the AI FSM. They are in the characters pbo from what I recall. :confused: sry Kju im not that advanced. If there is a way to prevent prone i believe it will make for good CQB missions in arma2 please arma2 gods, there must be a script!! ;) Share this post Link to post Share on other sites
.kju 3245 Posted October 22, 2009 It is really simple. Use the BI FSM editor to look at them. FSM itself are the visual part on the on side, yet traditional scripting on the other. Share this post Link to post Share on other sites
viibez 10 Posted October 26, 2009 (edited) It is really simple. Use the BI FSM editor to look at them.FSM itself are the visual part on the on side, yet traditional scripting on the other. "Yes i believe it is really simple!" :( (garbage man, if u have been scripting everyday for the last 5 years on this game & dont work as a painter! then im sure its simple as ABC)-- you have no idea of my background or my knowledge level when it comes to computers! i only understand the very basic use of the editor such as; waypoints and some synchronising and copied some init; codes. I guess i just assumed that because this is the official website to the game then you would almost be certain that the makers of the game would know! Instead it seems like your trying to get me to teach you how to do it! crazy :confused: lol that will nvr happen. Cause looking at a shape in the FSM editor was all to confusing! Its pure "Rocket Science" It should be something as simple as :- this donotAllow "prone" Edited October 26, 2009 by viibez edit Share this post Link to post Share on other sites
Gray1107 10 Posted October 26, 2009 This is what I use; this setUnitPos "MIDDLE";this forceSpeed 0 Unit stays on the spot in kneeling position but it can still aim/fire. Share this post Link to post Share on other sites
dale0404 5 Posted October 26, 2009 It should be something as simple as :- this donotAllow "prone" If only mate, if only... Share this post Link to post Share on other sites
santafee 10 Posted October 26, 2009 That DEFINITLY worked before the last patch. I often used this setUnitPos "Up"; middle or kneel and it WORKED. Why is it not working now anymore??? Thats really annoying.If you place enemys on more dangerous spot and make them stay there, u dont have any chance to get killed cause u cant see em.... Share this post Link to post Share on other sites
viibez 10 Posted October 27, 2009 This is what I use;this setUnitPos "MIDDLE";this forceSpeed 0 Unit stays on the spot in kneeling position but it can still aim/fire. Good stuff gray, i will try the forcespeed command. So "Middle", or "Kneel" does not work anymore cos of patch, bummer! thats why :confused: :butbut: Hopefully there is a fix for this soon, as i have spent days positioning units on balconies and inside buildings for Close Quarters Battle missions only to find out in testing that the "Middle or Kneel" dont work :o Thx peeps Come on Devs pls fix ;) Share this post Link to post Share on other sites
.kju 3245 Posted October 27, 2009 Make a report at the CIT with repro steps and demo mission. Share this post Link to post Share on other sites
viibez 10 Posted October 27, 2009 Make a report at the CIT with repro steps and demo mission. Thx Kju, what is CIT & is there a link to where i should make the report? Share this post Link to post Share on other sites
.kju 3245 Posted October 27, 2009 CIT = A2 Community Issue Tracker URL: http://dev-heaven.net/wiki/cis HowToReport: http://dev-heaven.net/issues/show/5353 Share this post Link to post Share on other sites
viibez 10 Posted October 28, 2009 I went there & created an account, although i could not work out how to type my documentation, or enter data! Also about the report; there are several things (init codes that i am aware of) that seem to not work anymore! - perhaps since latest patch 1.04 SetUnitPos "Middle" , "Crouch" , "Kneel" the units stay standing. (i didnt try prone, but i will now that i have thought of it;)) allowfleeing 0 - the unit did run away when it should not. -- i will write down anything else i come across. Share this post Link to post Share on other sites
.kju 3245 Posted October 28, 2009 http://dev-heaven.net/projects/cis/issues/new Share this post Link to post Share on other sites
Winchester Delta_1 0 Posted November 2, 2009 I'm using: this DisableAI "MOVE";this setBehaviour aware;this setUnitPos "MIDDLE"; The setbehaviour is probably redundant... but i just need the behavior of that unit be that way. PS: Isn't setbehaviour misspelled I tought you spelled it as behavior. But when i use the automatic script fill in the editor it alway's uses setbehaviour instead of setbehavior. Share this post Link to post Share on other sites
viibez 10 Posted November 5, 2009 (edited) I'm using: this DisableAI "MOVE";this setBehaviour aware;this setUnitPos "MIDDLE"; The setbehaviour is probably redundant... but i just need the behavior of that unit be that way. PS: Isn't setbehaviour misspelled I tought you spelled it as behavior. But when i use the automatic script fill in the editor it alway's uses setbehaviour instead of setbehavior. Im not sure but good point. check wiki! http://www.arma2.com/comref/comref.html it shows with the "U" I agree some codes arent working atm. I added this issue @ Dev-heaven. i hope that sounds right! :) http://dev-heaven.net/issues/show/5668 ---------- Post added at 09:54 AM ---------- Previous post was at 09:23 AM ---------- This is what I use;this setUnitPos "MIDDLE";this forceSpeed 0 Unit stays on the spot in kneeling position but it can still aim/fire. I just tested your code, it seems to work for allied units only. :S I placed 2 units facing each other, USMC & OPFOR (plus player as usmc) with no ammo and put the code in the init field, when i preview only 1 unit moves to "MIDDLE", my ally the USMC, so i switched myself to OPfor and then only the OPfor guy went to middle (crouch). So it only works with allies it seems! :s anyone else noticed this? Edited November 5, 2009 by viibez devhev Share this post Link to post Share on other sites