Home   Help Search Login Register  

Author Topic: "onplayerkilled.sqs" problem  (Read 990 times)

0 Members and 1 Guest are viewing this topic.

Offline Blanco

  • Former Staff
  • ****
"onplayerkilled.sqs" problem
« on: 30 Apr 2003, 19:58:20 »
this is the name of a script but I post it here cause I think its related to camscripting.

I want a simple slomotion cutscene when the player get killed, but the prob is that the mission never ends...

Here is the code

Quote
_camera = "camera" camcreate [0,0,0]
_camera cameraeffect ["internal","back"]

setacctime 0.2

_camera camsettarget player
_camera Camsetrelpos [-2,0,2]
_camera camcommit 0
@Camcommitted _camera

~3

setacctime 1

_camera cameraeffect ["terminate","back"]
Camdestroy _camera

end = true
exit


Ive got 1 trigger ,delay 3 sec:
condition : end
type : end#1

The cutscene works and the camera's destroyed but I return to the dead player, I can move my mouse around but no debriefing... I have to close OFP everytime cause I can't press Esc or other keys anymore... Very frustrating...
It looks like I've used the disableuserinput true command but I did not...

Please help me with this or give me an example where onplayerkilled.sqs is used...I'm not too lazy to find it out, but I need a push...

THX Blanco











 
 
« Last Edit: 30 Apr 2003, 19:59:37 by Blanco »
Search or search or search before you ask.

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:"onplayerkilled.sqs" problem
« Reply #1 on: 30 Apr 2003, 22:09:45 »
The official onplayerkilled script doesn't end.   Play an official mission and  you'll see what I mean ... it just goes on till you select retry or end.

So don't end the script.    There is no debriefing after death.   If you want one, I suggest you use a variable in the script to fire a trigger which ends the mission as if you were not dead.
Plenty of reviewed ArmA missions for you to play

Offline Blanco

  • Former Staff
  • ****
Re:"onplayerkilled.sqs" problem
« Reply #2 on: 02 May 2003, 17:03:42 »
Euhem, I don't get it...

I 've used a variable end = true which fire an end typetrigger,(with conditon : end) but the mission dont end!
I tried it without  the camdestroy _camera & _camera cameraeffect ["terminate","back"] line

I can wait forever, the end & retry buttons will never show up. I have to close OFP & restart it, It's drivin' me nuts!  :gunman:

What is the use of "onplayedkilled.sqs" as it never ends? ???

I checked every official campaign mission, BIS never used the script...

:help:












Search or search or search before you ask.

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:"onplayerkilled.sqs" problem
« Reply #3 on: 02 May 2003, 17:08:47 »
BIS use it in every mission, it loads automatically unless you have a file of that name in the mission folder.

Hang on, I'll go and find it ....

Codemasters\OFP\DTA\scripts.pbo

unpbo that file and have a look.

Plenty of reviewed ArmA missions for you to play

Offline Lykurgos

  • Members
  • *
  • Member of Decapitator
    • My ftp site (contains few mission etc...)
Re:"onplayerkilled.sqs" problem
« Reply #4 on: 02 May 2003, 18:55:43 »
But hey, isnÂ't there also another script after the onplayerkilled? I have unpboed the BTL campaign, and some of you remember that there was a custom death scene, where was the cross.

It seems that the onplayerkilled  determines what happens when player dies and then this deadcam.sqs activates and makes that scene with retry and abort buttons.
You are right of course, to go alone would be crazy. You will be my driver.

Offline toadlife

  • OFPEC Old Skool
  • Former Staff
  • ****
  • Official OFP Editing Center Toad
    • toadlife.net
Re:"onplayerkilled.sqs" problem
« Reply #5 on: 02 May 2003, 20:06:31 »
at the end of your script type the line, "enableEndDialog" and the retry/load/quit buttons will appear. Don't bother terminating the camera.


Like so...

Code: [Select]
_camera = "camera" camcreate [0,0,0]
_camera cameraeffect ["internal","back"]

setacctime 0.2

_camera camsettarget player
_camera Camsetrelpos [-2,0,2]
_camera camcommit 0
@Camcommitted _camera

~3

setacctime 1
enableEndDialog
"Whenever you want information on the 'net, don't ask a question; just post a wrong answer." -- Cancer Omega.

Offline Blanco

  • Former Staff
  • ****
Re:"onplayerkilled.sqs" problem
« Reply #6 on: 02 May 2003, 21:08:16 »
Thank you all for the help, guys

EnableEnddialog... euhm  Sounds good & logical!

I will try it tonight, but I'm sure it will work...any I will be back to push that solved button...




Search or search or search before you ask.