mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
- Removed the old classes and moved into an "Old" folder in the Moose/Development folder. -- Cleaned Moose.lua + Documented class types -- Cleaned Create_Moose.bat + Documented class types - Extend the ZONE_BASE class with a probability randomization factor, that can be used for zone randomization purposes. - Documented the Zone module classes. - Changed and removed the POINT_VEC3 SmokeColor and FlareColor structure. Replaced with SMOKECOLOR and FLARECOLOR types. -- Replaced also code in test missions with SMOKECOLOR and FLARECOLOR references. - Renamed UnControlled() method to InitUnControlled method.
20 lines
625 B
Lua
20 lines
625 B
Lua
local GroupInside = GROUP:FindByName( "Test Inside Polygon" )
|
|
local GroupOutside = GROUP:FindByName( "Test Outside Polygon" )
|
|
|
|
local Tank = GROUP:FindByName( "Tank" )
|
|
local ZoneA = ZONE_GROUP:New( "Zone A", Tank, 100 )
|
|
|
|
Messager = SCHEDULER:New( nil,
|
|
function()
|
|
GroupInside:MessageToAll( ( GroupInside:IsCompletelyInZone( ZoneA ) ) and "Inside Zone A" or "Outside Zone A", 1 )
|
|
if GroupInside:IsCompletelyInZone( ZoneA ) then
|
|
GroupInside:GetUnit(1):SmokeRed()
|
|
end
|
|
end,
|
|
{}, 0, 1 )
|
|
|
|
TankZoneColoring = SCHEDULER:New( nil,
|
|
function()
|
|
ZoneA:FlareZone( FLARECOLOR.White, 90, 60 )
|
|
end,
|
|
{}, 0, 5 ) |