Shadow Regions

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
User avatar
Sky_216
Droid Pilot Assassin
Droid Pilot Assassin
Posts: 2086
Joined: Mon Feb 13, 2006 3:28 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

Shadow Regions

Post by Sky_216 »

Reason behind: getting day and night lighting (or stormy and clear, dusk or day) for random skydomes.

Skys work fine....shadow regions less so:
Here's what I've got: two shadow regions, each about the same size (cover most of map), one called "light" and one "dark." Each one gives 1 directional light intensity of 1 (full), the other intensity of 0 (none). The idea is I remove one (through the random bit of the lua) to get the opposite lighting effect. Problem is it isn't doing anything...both lights seem to be loading. Oh and I'm using
RemoveRegion("nameofregion")
Inside the random sky+fx function (which works).
Post Reply