Wednesday, 21 May 2014

Let's Talk: Weather Zones

This was mentioned in earlier posts, but let's do a re-cap. A weather zone, within the development of this artefact, is an area of game-space that can have a different weather preset than that of the one created globally; by the Environment Control Script.  When a player enters the area, which is a trigger, the script saves information such as the current weather preset and/or custom values set by the end-user.  It then alters them to those created for within this zone.  When a player leaves the zone, the script sends the previously saved information back to the Environment Control Script, thus restoring the normal weather settings.  I have created a Prefabricated Object from this, which is essentially a drag & drop object.

The Inspector View for this script is simple and did not require a custom Inspector View, as you can see below.



(Click the image for a larger version)

The script for this object can be seen below, along with the translated version to C#; in that order.


No comments:

Post a Comment