Home   Help Search Login Register  

Author Topic: Getting unit to fire at a precise moment  (Read 668 times)

0 Members and 1 Guest are viewing this topic.

Coyote @ rage

  • Guest
Getting unit to fire at a precise moment
« 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!
« Last Edit: 01 Jan 2003, 19:33:10 by Coyote @ rage »

vulcan

  • Guest
Re:Getting unit to fire at a precise moment
« Reply #1 on: 01 Jan 2003, 19:44:32 »
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 :)

Coyote @ rage

  • Guest
Re:Getting unit to fire at a precise moment
« Reply #2 on: 01 Jan 2003, 19:47:32 »
ItÂ's scripted, and I had those lines in the script.
Shoulda explained my problem better.
Anyway, THAT didnÂ't work, but thanks.

vulcan

  • Guest
Re:Getting unit to fire at a precise moment
« Reply #3 on: 01 Jan 2003, 23:29:46 »
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. :)

Coyote @ rage

  • Guest
Re:Getting unit to fire at a precise moment
« Reply #4 on: 02 Jan 2003, 14:37:43 »
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.