prodetar2 0 Posted May 15, 2007 hey folks im busy with a WW2 mission with the liberation mod and im trying to let a soldier be kneeled behind a barrel but i can only make him stand or be prone how can i solve this? Share this post Link to post Share on other sites
Kirby 2 Posted May 15, 2007 OPF MISSIONS <span style='color:red'>(only for official Opf, Opf:R & RH missions)</span> Mission Editing And Scripting at the bottom of the main forums page is for mission editing questions and stuff! Share this post Link to post Share on other sites
prodetar2 0 Posted May 15, 2007 OPF MISSIONS<span style='color:red'>(only for official Opf, Opf:R & RH missions)</span> Mission Editing And Scripting at the bottom of the main forums page is for mission editing questions and stuff! uuh sorry didnt notice i take it a moderator will move the topic? also do YOU know the answer? Share this post Link to post Share on other sites
W0lle 1052 Posted May 15, 2007 Moving. I think there was a solution for that problem, but can't remember how it was done or where it was posted. It's not as easy as with ArmA though. Share this post Link to post Share on other sites
Warrior Xâ„¢ 0 Posted May 15, 2007 I got a slight solution. But the AI will most likely get up once they spot the enemy though. But anyway here's what i have. Put a unit on the map. Name the unit. In his init field put the following: this setbehaviour "combat"; this setunitpos "up" Then make a trigger over the unit and group the trigger to the unit. In that trigger's on activation field you place the following: name of unit switchmove "combattoweapon" Where 'name of unit' will be replaced by whatever name you gave the unit. Now this works untill that unit has spotted the enemy, then he will get up. You can probably force him somehow to stay that way through a small script but that's up to you Share this post Link to post Share on other sites
prodetar2 0 Posted May 16, 2007 THNX ill try that! and if they stand up i dont mind at all they die anyways :P EDIT: the soldiers are prone i meant that they are kneeled you know? sitting on your knees? or is it the wrong anim name? EDIT2: yes wrong name CombatToCrouch is the one i found it at ofpec thnx anyways Share this post Link to post Share on other sites
Warrior Xâ„¢ 0 Posted May 16, 2007 wrong name hmm, well combattoweapon works for me Anyways you found what you wanted. Good luck with the mission making Share this post Link to post Share on other sites
AgentJonathan 0 Posted May 17, 2007 this switchmove "Crouch" it works. Share this post Link to post Share on other sites
prodetar2 0 Posted May 17, 2007 the same as combattocrouch i guess thnx anyways Share this post Link to post Share on other sites
AgentJonathan 0 Posted May 18, 2007 wth? I have used that command alot, and it workd for me... Do you have OFP: Resistance? Share this post Link to post Share on other sites
prodetar2 0 Posted May 18, 2007 uuh offcourse i do... but whats the difference? i said its what i think the same... Share this post Link to post Share on other sites
mr.peanut 1 Posted May 23, 2007 Try AI Take Cover at OFPEC. Share this post Link to post Share on other sites
POPKA 0 Posted May 24, 2007 Liberation mod comes with a set of scripts developed from the AI cover script which has the unit crouched and then standing, repeatadly, or lying down to crouch. Take a look in the Libmod directory there is an example mission in there. Share this post Link to post Share on other sites
AgentJonathan 0 Posted May 25, 2007 Way to go, Peanut! Share this post Link to post Share on other sites