OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Captain Crunch on 26 Apr 2003, 16:09:54
-
Hi there!
I'm making this scripted cutscene and I need some help! Please!
The cutscene starts as the player drives with a vehicle into a trigger positioned in front of what is supposed to be a roadblock.
Then a soldier is supposed to walk from a gatehouse towards me (I'm still in the car) and ask for my reason through and my pappers.
But the soldier never gets to the right place! >:(
Here's how I did (kinda embarassing, it's probably totally wrong!)
#Loop
? (Stopped Driver) : GoTo "Go"
GoTo "Loop"
#Go
_Cam = "Camera" CamCreate [0, 0, 0]
_Cam CameraEffect ["Internal", "Back"]
_Cam CamSetTarget Trabi
_Cam CamSetRelPos [7, 14, 5.5]
_Cam CamCommit 0
GateGuard01 SwitchMove "FXStandAtt"
~0.2
DriverPos SetPos GetPos Driver
DriverPosX = (DriverPos Select 0)
DriverPosY = (DriverPos Select 1)
DriverPosZ = (DriverPos Select 2) - 5
~0.3
GateGuard03 DoMove GetPos Driver
~5
GateGuard03 PlayMove "EffectStandTalk"
~2
_Cam CameraEffect ["Terminate", "Back"]
CamDestroy _Cam
What am I doing wrong??
-
To get a person go exsactly where you want him to is HARD in Ofp.
The best way to do what you want, is to make the camera watch somewhere else, setpos the man, and then make the camera return ;D
-
lol
gotcha!
I'll be a great director/producer!!! ;D