OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: rOk on 30 Jun 2004, 05:00:16

Title: Mission parameters-how to?
Post by: rOk on 30 Jun 2004, 05:00:16
Hi all!

Anyone knows how to set mission parameters as time, weather, mode of transport etc. which the player(s) can choose in multiplayer lobby for example. I know you have to write them down in init and description, but that's about it.

And how to spawn empty vehicles at a certain height-preferably when they are killed or not present in a certain area for an X amount of time.
Thanks


                                                                     rOk
Title: Re:Mission parameters-how to?
Post by: ponq on 01 Jul 2004, 11:56:32
you're first question has been answered and explained nicely in this thread: http://www.ofpec.com/yabbse/index.php?board=7;action=display;threadid=16734 (http://www.ofpec.com/yabbse/index.php?board=7;action=display;threadid=16734)

2nd question, check the editors depot for vehicle spawns.

you'll need to understand at least the CreateVehicle command, like in this:
Code: [Select]
_pos = getpos bmp4
_skill = difficulty
_tank = "T80res" createVehicle getPos bmp4
Where bmp4 is either an object or a gamelogic.

Make sure you run spawn scripts on the server only.

Title: Re:Mission parameters-how to?
Post by: rOk on 01 Jul 2004, 14:26:44
Thanks for the tip, but I've tried four respawn scripts already, and each of them failed to put a helicopter or a plane at the correct position(carrier deck)

For some reason, one worked perfectly with an UAZ, but not with flying craft!?