Home   Help Search Login Register  

Author Topic: switch off dead camera  (Read 539 times)

0 Members and 2 Guests are viewing this topic.

Offline Plane

  • Members
  • *
  • You can call me my nickname "Plane"!
switch off dead camera
« on: 24 Jul 2004, 09:29:53 »
Is there a way to stop camera from switching to the enemy who kill you when you are dead? ???

Just like the Red Hammer compaign :joystick:
The propeller is just a big fan in front of the plane used to keep the pilot cool. When it stops, you can actually watch the pilot start sweating.

ponq

  • Guest
Re:switch off dead camera
« Reply #1 on: 24 Jul 2004, 11:39:59 »
Yes.
You could either check with an eventhandler "Killed" or with a "not alive p1" check.

Then execute your own death cam, or what you wanna do.

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:switch off dead camera
« Reply #2 on: 24 Jul 2004, 12:14:32 »
Yes.

When you are killed a script called onPlayerKilled.sqs executes automatically.    If you place a script of this name in your mission folder the game will execute your one rather than the default one.  

It is advisable to use the default one (I can't remember where it is but its fairly easy to find ... I think its in a .pbo called scripts.pbo somewhere) as a template for your own one because there are certain things (like variables being set) that must happen during the script for the game to work properly.
Plenty of reviewed ArmA missions for you to play

Offline Artak

  • The old beanbag shaker
  • Former Staff
  • ****
  • You want to talk about it, yes?
    • OFP Team Finlanders
Re:switch off dead camera
« Reply #3 on: 24 Jul 2004, 15:28:08 »
* Artak dashes in

Would be a great idea for somebody to put all of these build in and automaticly executed scripts in a reference.
There was a thread about something where an exit.sqs (or something like that) came up and I realised I had never heard of it.

So, the bananas are on me for who ever makes a reference of all these automated scripts in OFP.  ;D
Not all is lost.

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:switch off dead camera
« Reply #4 on: 24 Jul 2004, 15:30:52 »
Yes Artak, we all know about your banana fetish.   ::)

There is a list of them in the comref as I recall.

Edit:  voila!


Event based scripts

Description:
There are some scripts in the game which are launched when some event occured.

Some of them have names given by mission designer (scripted waypoint, particle scripts (since 1.50), user action scripts).

Names of others are given by the program.

init.sqs - launched when mission is started (before briefing screen)
- no arguments

initIntro.sqs - launched when intro is started (since 1.50)
- no arguments

exit.sqs - launched when mission is finished (before debriefing screen, since 1.50)
- argument: end # - number of game end

onFlare.sqs - launched when illuminating shell is lit(since 1.45)
- arguments: [[r, g, b], gunner] - r, g, b is light color

comment »

General Barron  September 27, 2003, 23:21  
There is also:

onplayerkilled.sqs - launched when the player is killed. This script replaces the default death sequence. Make sure you place the command "enableEndDialog" somewhere in your script, as this will then cause the dialog that allows you to load, retry, or quit to appear.
-arguments: [who died, who killed them] - second argument can be null in some cases (death from falling or camcreated artillery, for example).
 
 
« Last Edit: 24 Jul 2004, 15:32:07 by macguba »
Plenty of reviewed ArmA missions for you to play

Offline Artak

  • The old beanbag shaker
  • Former Staff
  • ****
  • You want to talk about it, yes?
    • OFP Team Finlanders
Re:switch off dead camera
« Reply #5 on: 24 Jul 2004, 15:42:35 »
Great stuff. Thanks Mac!  :D

* Artak stuffs a banana in macguba's pants and mails one to General Barron
Not all is lost.

Offline Zombie

  • Members
  • *
  • Beware the night, the zombie walks among you
    • USI
Re:switch off dead camera
« Reply #6 on: 25 Jul 2004, 12:36:40 »
don't forget camera.sqs as an embedded script, wonderfully useful for making cutscenes