OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Hauk on 12 Jun 2005, 15:57:08
-
Hey everyone,
I have a civilian in a town whose about to be executed by a Russian officer, and what i want him to do is do the "FXStandSurUniv" switchmove and i have him set as a captive, but still he goes prone at the start of the cutscene. I have his behaviour set to "SAFE" but still nothing, he goes prone.
Any ideas?
Cheers
Hauk
-
Try setting him to CARELESS
Or make resistance friendly to East
-
ok, i'll give it a shot when i get home.
I'll report back here.
Watch this space!
Hauk
-
or how about in his init field
this setunitpos "up"
that will make him stand up for aslong as you want then when you want
-
Okay thanks everyone, I know have the Civilian standing with his hands on his head.
But the Soviet officer won't shoot him. I'm using:
officer1 doFire man3
But that doesn't work.
I'm thinking its a problem with him being a captive, so how do i change his side to being west.
I've tried
side man3 == west
Or how do i set him just not being a captive anymore??
Thanks
Hauk
-
make the officer target the civi first then use do fire like this
officer1 dotarget man3
~1
officer1 doFire man3
works for me
-
cheers man, i'll see if it works ;)
Hauk
-
side man3 == west
wouldn't work. if you want to do a check for what side a unit is, that would work. but you can't change a unit's side during a mission.
if you have made the prisoner a captive with
unit_name setcaptive true
then just unset it using
unit_name setcaptive false
-
Ok, I unset the setCaptive command as you said. But the officer doesn't shoot him :-\
I have the officers behaviour set to "CARELESS" and still nothing.
This is the code i have to execute the execution:
officer1 setBehaviour "CARELESS"
officer1 setCombatMode "Open Fire"
officer1 dotarget man3
~1
man3 setCaptive false
officer1 doFire man3
~10
And he just points his gun at the civilian. :(
Any more ideas :-[
Hauk
-
Open fire i never knew thats right i thought it was something like setcombatmode "red" or something plus i think make the officer aware instead of careless
-
Okay, i changed his combat mode to red and his behaviour to aware.
I think i have it. Instead of him shooting man3, he just places his satchels around him. So i'm thinking if i remove all his satchels he'll end up having to use his gun.
Btw, is the string value for a satchel charge "Pipebomb"?
Cheers,
Hauk
-
i think pipebomb is correct it sounds weird that dotarget and dofire commands dont work they worked for me and it sounds like were doing near enough the same thing
-
Yeah it is weird.
I've another problem now. I have this in officer1's init field:
this removeWeapon "PipeBomb"; this removeWeapon "Pipebomb"; this removeWeapon "Pipebomb";
But still he plants his satchel charges!
any ideas?
Hauk
-
okay the name is "Pipebomb" wich is correct so he shouldnt have any satchel charges left ??? ???
just one thing how are you telling the officer to fire is it dofire ?
-
use
removeallweapons unit_name
and then add magazines and guns manually. that or use someone without satchels.
-
yeah, i'm using what you siad. Here's some of the code from the script:
officer1 setBehaviour "AWARE"
officer1 setCombatMode "red"
officer1 dotarget man3
~1
man3 setCaptive false
officer1 doFire man3
~10
But i get nothing.
I wonder how many satchel charges he doesn have :o
Hauk
Just caught your post there bedges. I'll give that a try. Cheers
Hauk
-
okay, i tried to add a few magazines to the officer1 with this code:
this addMagazine "Bizon"; this addMagazine "Bizon"; this addMagazine "Bizon"
But still i got no magazines!! :-[
Any ideas??
Hauk
-
this addMagazine "Bizon"; this addMagazine "Bizon"; this addMagazine "Bizon"
Try:
this addMagazine "Bizonmag"; this addMagazine "Bizonmag"; this addMagazine "Bizonmag"
Planck
-
did you add weapon first from the looks of it you didnt
-
Okay, i now have officer1 shooting man3. Thats fine. But after four bullets you'd think he'd fall over and die!! LOL :o
Because he has his hands on his head he just takes the bullets standing up.
Whats the switchmove command to make him stand normal?
Thx
Hauk
-
Hooray!!
I found the switchmove command, and man3 does fall over and die!!
Everything works the way i want it to know.
Thx 456820, and everyone else who helped here!! ;D ;D ;D :D
Topic Solved!! 8)
Hauk 8)