OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Foo on 14 Jan 2003, 12:50:47

Title: coupla probs
Post by: Foo on 14 Jan 2003, 12:50:47
how do u get units to kneel? like when they take something from ammo crates or lay satchel charges?

Also, anyone know how to make artillery that hits randomly(or within a cretain radius)....basically, i need to have triggers ingame if posible....i tried doing it by placing game logic wihtn a 100meter radius, then creating a shell at that pos, but, although it hits in a different place every time i play it, once the artillery is fored it hits the same place...hellp, in anyway, would be welcome
Title: Re:coupla probs
Post by: Robbo on 14 Jan 2003, 14:37:28
For the artillery goto the editors depot there are many scripts for artillery there with randomizing etc.
Robbo
Title: Re:coupla probs
Post by: Foo on 14 Jan 2003, 18:37:41
rgr, does anyone know how to make guys do the kneeling though?
Title: Re:coupla probs
Post by: Blanco on 14 Jan 2003, 18:45:24
rgr, does anyone know how to make guys do the kneeling though?

unitname switchmove "combatcrouch"     ?

Title: Re:coupla probs
Post by: Wolfrug on 14 Jan 2003, 19:08:39
that particular animation can easily be achieved by using this syntax:

unitName action["REARM"]

Well, it works well for human players, with you crouching down and crouching up again when you move (like when taking stuff from an ammo box). I'm not too sure of how it effects AI players though...have to try it I suppose.

But I bet the animation also exists somewhere among the play and switchmoves...you just have to see if someone knows it, and if not, try them out for yourself :P

g'luck!

Wolfrug out.
Title: Re:coupla probs
Post by: Foo on 15 Jan 2003, 09:22:31
thankin you...ill try these out  ;D
Title: Re:coupla probs
Post by: O Neil on 16 Jan 2003, 02:24:43
ffsm I have the combat crouch scritp, but I'm at my frienda house so I don't have my script word pad file thingy.....I'll tekll you whebnI get home....in 1/2 an hour or so.

O Neil

PS: Unless that workd for you of course.
PPS: I have a set of handmovements iof you want the as well?
(ie hand movement for gogogo!
PPPS: Why, after he finishes his hand movement he stands to At-ease?
PPPPS: It's really anoying.
Title: Re:coupla probs
Post by: O Neil on 16 Jan 2003, 05:11:22
Hey

I got back, now, type this in the init feild of your player to make him sitting down instantly (Good for the star of a mission:

this setbehaviour "safe"; this switchmove "effectstandsitdown"

Put this in the activation field of a waypoint:

unitname playmove "effectstandsitdown"

Or

unitname action ["sitdown"]

O Neil
Title: Re:coupla probs
Post by: Foo on 16 Jan 2003, 16:57:12
well, thanks but i know how to make a guy sitdown....the action rearm worked for me, so im sorted...i dont know alot of commands though, so plz send any u have 2 thecolumbianbandanaconvention@hotmail.com

Talking of that, ive looked around, and although ive found loadsa command refs, i cant find a similar guide to switchmove/playmove commands, or action commands...again, if you know where to find one, PLZ send it to me at the above address ;D

Thanks guys: again youve helped me out of a hole in my editing knowledge ;)