OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: yankme on 31 Dec 2005, 09:44:40

Title: onplayerkilled
Post by: yankme on 31 Dec 2005, 09:44:40
working this script after death the cam runs fine, but wont go to retry, load, ext, screen. What am i missing?????
Quote
_cam = "camera" camcreate [0,0,0]
_cam cameraeffect ["internal", "back"]

; point the camera at the player, and place it 2m to the players left,
; 10m to his front and 3m above the ground [x,y,z] x left,right y front,back z height

_cam camsettarget player
_cam camsetrelpos [-2,1,15]
_cam camcommit 0
~2

_cam camsetrelpos [0,0,1]
_cam camcommit 10
@camcommitted _cam
~2

; fade in from black over 2 seconds
titlecut ["Your Dead","BLACK IN",2]

 

; end cutscene
_cam cameraeffect ["terminate", "back"]
CamDestroy _cam

i have a cinima screen and can move the mouse up and down,,,but then i can only alt=F4 it to get out,,,,,,,   DisableUserInput TRUE  or faulse,,, endcut = true??????

Title: Re:onplayerkilled
Post by: MrN on 31 Dec 2005, 10:07:06
Quote
enableEndDialog
This needs to be somewhere to get the retry/ end options appear.
Title: Re:onplayerkilled
Post by: yankme on 31 Dec 2005, 10:11:29
MrN thank you that was it  !!!!!!!!!!!