OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Gooner861 on 25 Apr 2004, 12:23:59

Title: Actions in cutscenes
Post by: Gooner861 on 25 Apr 2004, 12:23:59
How do you get sumone to do an action like say shoot sum1 in a cutscene, in that particualr scene. Wot command do u put in ur script:
For example where wud i put a command for sum1 to shoot sumone else in this script.

;=== 18:23:38
_camera camSetTarget [-90023.76,1342.97,-9290.02]
_camera camSetPos [9481.95,2760.66,2.16]
_camera camSetFOV 0.700
_camera camCommit 0
Titletext["BOR : American Outpost near US held Lippany","plain down",2]
@camCommitted _camera
~3
 ;D
Title: Re:Actions in cutscenes
Post by: dmakatra on 25 Apr 2004, 14:11:00
I don't see what you mean, where in the cutscene do you want someone to be shot?

Before the delay or after?

:beat: *Gets Shot* :beat:
Title: Re:Actions in cutscenes
Post by: Gooner861 on 25 Apr 2004, 21:11:37
Well i want the camera to focus on a person and then shoot him. Ive named the shooter unit1 and the person shot unit2.
Title: Re:Actions in cutscenes
Post by: General Barron on 29 Apr 2004, 20:16:55
unit1 dofire unit2

However, it won't always fire right away. Try putting

unit1 reveal unit2; unit1 dowatch unit2

in a little bit before the dofire command; that will get unit1 to start watching unit2 before hand, so he will already be pointing at him when you command him to shoot at unit2.
Title: Re:Actions in cutscenes
Post by: Gooner861 on 29 Apr 2004, 20:54:23
Ok thanks, but were do i put it in the script:

;=== 18:23:38
HERE
_camera camSetTarget [-90023.76,1342.97,-9290.02]
_camera camSetPos [9481.95,2760.66,2.16]
_camera camSetFOV 0.700
_camera camCommit 0
Titletext["BOR : American Outpost near US held Lippany","plain down",2]
@camCommitted _camera
~3

or where?
Title: Re:Actions in cutscenes
Post by: dmakatra on 29 Apr 2004, 21:34:45
It's a bit hard when you can't see the cutscene. Try experimenting. ;)

:beat: *Gets Shot* :beat:
Title: Re:Actions in cutscenes
Post by: Gooner861 on 29 Apr 2004, 21:42:32
Oh rite, thanks all for the help.

Armstrong, how many bullet holes do u have? U seem to get shot alot.  ;D