OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Scarophion on 01 May 2003, 23:01:30
-
I'm hoping someone can answer these.
1) How do you make your own choice of weapons for selection at the start of a game, when reading the briefing?
2) Is there anyway to make an Intro and have the character you will be playing shoot some rounds, but have it so that when the missions starts they have lost the same number of bullets as they shot in the intro?
3) Is there a way to make it so the battle in an Intro is left exactly the same when you play the mission? i.e Any men killed will still by lying in the same position as in the intro, in-game.
Thanks for any help. Sorry if some of them don't make much sense. :-\
-
Welcome to the forum Scarophion.
1. You need a special file called description.ext. It's very easy to use and there are tutorials in the Ed Depot. There is also a template you can use in the Tutorial Mission.
2. Yes, roughly - just reduce the amount of ammo the player has at the start of the mission by reducing the ammo bar. I'm not sure how to do it exactly, since I don't know how to add or remove rounds, only whole magazines.
3. Yes, but to do it exactly would be pretty hard work. (You would have to use getPos and setPos commands on every unit in the Intro/start of mission.) What I suggest it that you control the Intro quite tightly, so that the battle is the same each time. Then you can simply lay out the start of the mission in the same way. Nobody is likely to notice any minor differences such as a body lying in the wrong attitude.
Hope that helps. The questions made perfect sense. :)
-
Just to add a little to macguba's reply..
On #2 and 3
You could always ditch the intro and then just make a cutscene at the beginning of the mission.. That way everything would have to be the same.
This is difficult to achieve if you're having problems with lag with the mission alone.. But if that's not an issue, a cutscene should work for you. ;)
Asmo
-
Yep, good idea. Put a savegame at the end of the cutscene (the command is, yes you;ve guessed it savegame) at the end of the cutscene so that the player doesn't have to sit through it again if he gets killed later.
-
Thanks for the help. Glad to be in the forums, people actually help me here. ;)
Thanks for #1, I'll go look for that now.
I forgot about the sliding scale in the ammo bar. Thanks for reminding me.
I'm not making this mission for a while. It's going to be my big project once I've worked out some little niggles, so I'm sure I'll eventually find a way of doing #3. I might even just have an Intro, like you suggeted Asmodeus.