OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: B-2-0 on 03 Jul 2003, 17:06:22
-
I am trying to get a loon to go into the FXexection swithmove....problem is, he drops to his knees but then gets straight back up again.....how do i keep him there? ???
-
not sure which anim you mean there?! But most SWITCHmoves should be contants while PLAYmoves are usually the ones that only play for a short period.
Anyho, try & set his behaviour to "combat" or "stealth" and use a
Bob SetUnitPos "UP"
if you're trying to force the AI to take some kneeling position. :)
-
BTW if you have the loon shot he will definetly stand up when he detects that he's been shot and then fall to the ground when he realises that he's dead ;D... Trust me I've tried it. ;)
-
As far as I have tested now, and as "FXExecution" only works with "switchmove", there is no way you can prevent the moron from jumping on his feet again in some after-death spasm.
Here is a suggestion for a possible work-around :
_mymoron switchmove "FXExecution"
~3
_mymoron setdammage 1
_mymoron switchmove "FXExecutionDead"
At that stage, it's your choice :
* either you point the camera elsewhere (hoping it's a cutscene...), and you'll have seen the guy shot (the prob' is the same with "FXExecutionDead", the guy jumps back on his feet) ;
* or you combine these moves with other ones, the only one that I've found being "TreatedLyingToLying", but the move isn't that fluid (the advantage only being that he lies dead for good).
I realize that I've assumed you wanted the guy whacked. Hope it's the case...
-
The way it pans out is....dude drops to his knees (but at this stage he is suddenly switches to a standing pos) and then my Ranger dude shows him the wrath of the Masterkey ;D....i will try your sugestion and report back....thx :)