- Joined
- Feb 20, 2007
- Messages
- 338
Can I use a region array variable as an entering region?
I have:
I have tried:
What I want is for the camera to remain "Set CamSetting = 7" if the unit leaves one of those 28 regions entering into an overlapping region of that array, and to reset to CamSetting 0 when it leaves into any other region or area without a region (No region).
It would be great is my event could be something like:
"Unit - A unit enters Mnt_array[(Integer A)] <gen>" (or leaves).
Why I need this is to prevent the low Angle of Attack of my camera from going through hills showing the sky box below/through the hills. For things like hills my AOA and distance from the target unit increases, for flat areas the AOA lowers back down and the distance to target reduces.
This is a single player, camara following (locked to) the player's unit.
I have:
- Set Mnt_array[1] = Mnt <gen>
- (through)
- Set Mnt_array[28] = Mnt Copy 28 <gen>
I have tried:
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Leaving unit) Equal to (Random unit from (Units in Mnt_array[(Integer A)]))
- Then - Actions
-
Else - Actions
- Set CamSetting = 0
-
If - Conditions
What I want is for the camera to remain "Set CamSetting = 7" if the unit leaves one of those 28 regions entering into an overlapping region of that array, and to reset to CamSetting 0 when it leaves into any other region or area without a region (No region).
It would be great is my event could be something like:
"Unit - A unit enters Mnt_array[(Integer A)] <gen>" (or leaves).
Why I need this is to prevent the low Angle of Attack of my camera from going through hills showing the sky box below/through the hills. For things like hills my AOA and distance from the target unit increases, for flat areas the AOA lowers back down and the distance to target reduces.
This is a single player, camara following (locked to) the player's unit.