OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Corben Dallas on 16 Jun 2005, 13:51:11

Title: External view - can't find how to
Post by: Corben Dallas on 16 Jun 2005, 13:51:11
I've been searching through the ComRef but can't a command to make the view go 3rd person (if that's correct) - behind the player.  Is there one?

Want it for player's death., eg., switch to external view, then go slo-mo.  The slo-mo death scene looks kind of neat.

Also, someone in another thread said use -nomap.  I tried this as a command line run when starting the game, but the map's still there.  Any ideas..?
Title: Re:External view - can't find how to
Post by: qqqqqq on 16 Jun 2005, 14:07:43
No.  Use a camera.   There's a command "switchcamera" which you might find useful, there is a tute on it.

Death scenes are handled by special script called onPlayerKilled.sqs which is called automatically when the player is killed.   Search around, there's plenty of stuff about it.

-nomap is nothing to do with the map in the game.  It has something to do with how the game handles memory.  Or possibly how the computer's memory handles the game.  Check the Avon Lady's brilliant FAQ and the official forums.
Title: Re:External view - can't find how to
Post by: Corben Dallas on 16 Jun 2005, 14:08:40
Neat.  Thanks qqqqqq.
Title: Re:External view - can't find how to
Post by: bedges on 16 Jun 2005, 14:10:41
you can get the camera behind the player (or any unit) by putting

Code: [Select]
unit_name switchcamera "external"
in the init line, or in a script. but as stated above, deathcams are another question entirely.

as for getting rid of the map... (http://www.ofpec.com/editors/comref.php?letter=S#showMap)
Title: Re:External view - can't find how to
Post by: Corben Dallas on 16 Jun 2005, 14:37:27
Hmm... Cheers for that.  I wondered if -nomap removed the map or affected memory, but have since read The Avon Lady's stuff.  Mind you, I might remove the map from my mission now, as it'd give a little extra challenge.  Or do people get really annoyed by that sort of thing..?

Edit:

Quote
Death scenes are handled by special script called onPlayerKilled.sqs

Does this work in 1.46 do you know?  Also, does init.sqs run automatically?  I'm running it on the player init.  Sorry - lazy question - I'll log a hint in a test it out now.