Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| op2_sdk:disasters [2016/11/26 08:09] – vagabond | op2_sdk:disasters [2016/12/29 17:55] (current) – [Sample Code] vagabond | ||
|---|---|---|---|
| Line 5: | Line 5: | ||
| All disasters in Outpost 2 are fully supported by the SDK. This section covers Meteors, Electrical Storms, Earthquakes, | All disasters in Outpost 2 are fully supported by the SDK. This section covers Meteors, Electrical Storms, Earthquakes, | ||
| - | When setting a disaster, you are setting when the first warning that the disaster will occur. No disaster can occur at mark 0 (when a scenario first starts). Even if you set a disaster to immediately occur, it actually will not happen until mark 15. | + | When setting a disaster, you are setting when the first warning that the disaster will occur. No disaster can occur at mark 0 (when a scenario first starts). Even if you set a disaster to immediately occur, it actually will not happen until about mark 10-15. The exception is a vortex which can be set to occur immediately. |
| ===== Meteor ===== | ===== Meteor ===== | ||
| Line 29: | Line 29: | ||
| </ | </ | ||
| - | Earthquake magnitudes above about 7 become | + | Magnitude 0 Earthquakes do the least amount of damage. |
| ===== Vortex ===== | ===== Vortex ===== | ||
| Line 37: | Line 37: | ||
| </ | </ | ||
| - | If you set the vortex duration to 0, it will continue indefinitely. | + | If a vortex duration |
| + | |||
| + | If the vortex reaches its endpoint before its duration expires, it will slightly wobble around the end location for the remainder of its duration. | ||
| + | |||
| + | If immediate is set to true, the vortex can be made to appear immediately when the scenario starts. | ||
| ===== Sample Code ===== | ===== Sample Code ===== | ||
| Line 114: | Line 118: | ||
| else if (randNum < 85) | else if (randNum < 85) | ||
| { | { | ||
| - | CreateEarthquake(); | + | CreateEarthquake(); |
| } | } | ||
| else if (randNum < 95) | else if (randNum < 95) | ||