OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started 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
-
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:
-
Well i want the camera to focus on a person and then shoot him. Ive named the shooter unit1 and the person shot unit2.
-
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.
-
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?
-
It's a bit hard when you can't see the cutscene. Try experimenting. ;)
:beat: *Gets Shot* :beat:
-
Oh rite, thanks all for the help.
Armstrong, how many bullet holes do u have? U seem to get shot alot. ;D