Jump to content
Sign in to follow this  
Cold Evil

Help with creation of a randomized mission script

Recommended Posts

Hi!

I'm about to learn how to script etc. but I stumbled upon some problems. I want to make a Random mission to appear on a random marker.

At the moment I want three missions to work "Destroy the Weapon Case", "Assassinate" and "Patrol". And I need serious help to do this :)

Here is what I have managed so far. I've placed hidden markers on the map which represent the target areas:

Marker_1

Marker_2

Marker_3

Marker_4

Marker_5

Then I have placed 3 Objective Markers named:

OBJ_1

OBJ_2

OBJ_3

These markers are used for marking missions. The thing is that I want 3 separate objectives at the same time. At the same place or a different location. That would be the simple mission generator.

Now to the missions itself, to make it possible to add more missions easy I what to have the missions read from a file, each time instead of having them hard coded.

Patrol: be present in a location of 300 meters in 15min with no enemies.

Destroy the Weapon Case: A weapon case randomly spawns within an area of 600 meters. When destroyed mission is complete.

Assassinate: Kill one OppFor officer or whatever class name that are present.

How can I achieve this? Walk me through the steps. :)

--

I plan on uploading this to Armaholic at scripts as "Community Simple Random Mission Template". So people don't have to rewrite it.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×