OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Coyote @ rage on 01 Jan 2003, 19:31:12
-
In a cutscene i want to do a close-up of a sniper that shows him doing a single shot.
The Cam scripting is not the problem, but I canÂ't get him to fire at the exact moment I cut to him.
I donÂ't care what he fires at, as itÂ's a close up, so I tried to create an unarmed target in front of him, which was setcaptive = true and at the moment I cut to the sniper I put setcaptive = false.
It worked once or twice, but he isnÂ't sure to fire.
Anyone know a sure way to do this?
Thx in advance, Coyote!
-
hopefully your cutscene is scripted so put this in the cutscene its self...
at the time you want him to fire..
sniper dotarget enemy
then
sniper dofire enemy
try that :)
-
ItÂ's scripted, and I had those lines in the script.
Shoulda explained my problem better.
Anyway, THAT didnÂ't work, but thanks.
-
dotarget and dofire didnt work? You must have scripted it wrong then m8. hehe, should work... maybe have the enemy at setcaptive true then setcpative false right before the dotarget. :)
-
I got it to work using the setcombatmode command. Also raising the snipers skill level helped. Not a beautiful solution, as the dumb AI is using 2-3 shots on a stationary target, but it worked.
Thx for the help.