Jump to content

Recommended Posts

Posted

Is it possible to get an aircraft to randomly appear and then fly to a waypoint. I have also noticed that when you place an aircraft in orbit it only stays there for a finite period of time

Posted

Sort of, depends on what you mean by 'randomly appear'.

 

Aircraft will leave their orbit once the orbit time elapses or they run out of fuel, or some other condition cause it to leave orbit.

[sIGPIC][/sIGPIC]

Reminder: SAM = Speed Bump :D

I used to play flight sims like you, but then I took a slammer to the knee - Yoda

Posted

Sorry I meant can the aircraft randomly materialise at a set point then at a set point like the star of a mission

Posted

Yep, make sure to have a start time delay of a day or so and then randomly activate the group via using triggers.

 

If you want to do it at mission start, simply have a mission start trigger with a random value of 20-60% and activate the group. This will randomly spawn the group at the start of the mission.

 

If you want to randomly activate it at a different time within the mission, I have 2 favorite ways to do that. The easiest way is to make a random% condition on a once trigger, and the percent chance ought to be between 1-3. Basically it will eventually become true but a random chance of 1% means that every second within the mission there is a 1% chance it activates the group.

 

A more controlled method would be to Set Random Flag value between x and y and then decrease that value on a looped function at a set interval. Once the value equals 1 you spawn the group.

 

Once>Time more 2 seconds> Set Flag 1, Set Flag Random Value (Flag 2, low limit = 15, high limit = 30)

Switched Condition> Time Since Flag 1 is 60> Flag 1 Off, Flag 1 On, Flag 2 Decrease by 1

Once> Flag 2 equals 1> Flag 1 Off, Activate group A.

 

This series of triggers sets a value between 15 and 30 and counts down by 1 every 60 seconds until it reaches a value of 1.

The right man in the wrong place makes all the difference in the world.

Current Projects:  Grayflag ServerScripting Wiki

Useful Links: Mission Scripting Tools MIST-(GitHub) MIST-(Thread)

 SLMOD, Wiki wishlist, Mission Editing Wiki!, Mission Building Forum

Posted

Grimes you have lost me entirely here- sorry

 

would you be able to put an example of each up as a mission

Posted

Here ya go, a mission with all 3 examples and messages attached to each trigger to explain how each works. There are 4 vehicles, 1 is spawned at the start, and the other 3 will spawn in randomly each with a different method used.

Random Examples.miz

The right man in the wrong place makes all the difference in the world.

Current Projects:  Grayflag ServerScripting Wiki

Useful Links: Mission Scripting Tools MIST-(GitHub) MIST-(Thread)

 SLMOD, Wiki wishlist, Mission Editing Wiki!, Mission Building Forum

Posted

blimey, thanks for doing that ill check them out tomorrow. if i get this mission working ill post it and see what you all think.

Thanks Grimes

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...