OFPEC Forum
Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting General => Topic started by: ZapBrannigan on 08 Oct 2007, 06:35:55
-
Hey,
I have a scene where I need the player to get hit with somthing unknown and fall over on his back or stomach and not be able to move but still be able to look arround, and also he needs to be locked in the 1st person view. How can I do that? I think it would involve switchmove to animations
thanks
-
mandoble did somin similar in the forest... when u get dragged by wolfs... its a mision 4 OFP so if u got it check da MD... else hopefully hell see dis nd help u :P :D
LCD OUT
-
Glad you had an answer here LCD- i was stumped and figured it was time to pick up the "batphone" and call Mandoble! :)
-
Ok, well Il just have to hope that the famous mandoble looks at my question. ;)
thanks guys.
-
Yep, I did it for OFP using player switchMove "LyingToPutDownLying" but no idea about ArmA animations, maybe you can use an anim-viewer to find the correct animation, perhaps Hoz might help here too.
-
Ok, I have him fall over with a animation, i used player switchmove "AdthPercMstpSrasWpstDf_6" so not hes on the ground and can only look straight ahead. But there is grass in his face so he cant see the scripted event im about to do. Is there anyway to make the grass around the player go down?
Also I need the players leader to leave the group(which consisted of only him and the player) and go stand infront of the players field of view, and come up to him and bend down and be like"whats wrong" and stuff like that.
thanks
-
thres a vehicle in da editor called grass cutter (or somin of da like... im not sure :P) u cud create it there.... it shud cut da extra grass uve got :D
LCD OUT
-
I found it and it works fantasticly. now all I need is the help with the other part.
thanks
-
Hey, Zap, how about posting your grass cutting solution here, so we'll know how it works?
Regarding the other problem, here's a few suggestions:
Suggestion 1:
- Use doMove on the unit to have him move to the desired position in player's view.
- Use doWatch player to have unit face player.
- Play a crouch animation
Suggestion 2:
Sometimes doMove is not precise enough (i.e, the unit will refuse, or will stop 1 or 2 meters away from desired position). In that case, try a series of playmoves (walking animations) to move the unit to the exact desired position. To make sure it is exact, you can first setpos the unit (assuming he is outside of player's view to begin with) to an exact starting point, and setdir to point him in the rigtht direction. That will guarantee the playmoves will land the unit in an exact ending position. Just keep adjusting the start position until he moves to the correct spot. That is the trick I used to have a unit walk backwards into the outhouse so the soldier was standing on top of the toilet and could see over the door (in the Last Tango in Bagango mission). Once I had the correct starting position, I was guaranteed the unit arrived at my desired position 100% of the time.
-
The grass cutter is just an object you will find in the editor and wherever you place it it will remove all the grass in maybe a 3 meter diameter circle.
How do I get him to leave the players group? I tried m1 join grpnull but it gives an error?
-
[m1] join grpnull
dats da corect syntex :P
alwayz check da comref ;) :D
LCD OUT
-
Ok I got him to leave the group, thanks LCD
but I cannot get him with any acuracy to get to a place where the player can see him up close. He goes to different sides of the player depending on where the player falls. what if I were to create a weapon on the player and tell him to pick it up? then he would crouch too, and if I could freeze him there somhow, anybody know how I could do that?
And Ive noticed with the animation, It locks the players view so he cannot look arround. Is there one that does not do this?
thanks