- Joined
- Nov 30, 2007
- Messages
- 1,202
How to make "Fire Spread"?
I have no clue how to make the fire spread. I want to to spread towards a random nearby building within 150 of Damaged_Unit But the fire has short attack range and can't move so not all buildings are near enough. Also, some areas or buildings might already be occupied by a fire, and I don't want to stack fires on-top one another. Ideas?
-
Start Fire
-

Events
-


Game - GDD_Event becomes Equal to 0.00
-
-

Conditions
-


(GDD_DamagedUnit is A structure) Equal to True
-
-

Actions
-


If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-



If - Conditions
-




(GDD_DamagedUnit has buff Liquid Fire) Equal to True
-
-



Then - Actions
-




Set FireStack[(Custom value of GDD_DamagedUnit)] = (FireStack[(Custom value of GDD_DamagedUnit)] + GDD_Damage)
-




If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-





If - Conditions
-






FireStack[(Custom value of GDD_DamagedUnit)] Greater than or equal to ((Max life of GDD_DamagedUnit) x FIRE_DMG_REQ)
-
-





Then - Actions
-






Set FireStack[(Custom value of GDD_DamagedUnit)] = 0.00
-






If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-







If - Conditions
-








(Number of units in (Units within 100.00 of (Position of GDD_DamagedUnit) matching ((Unit-type of (Matching unit)) Equal to Fire))) Greater than 0
-
-







Then - Actions
-







Else - Actions
-








Unit - Create 1 Fire for Neutral Hostile at (Position of GDD_DamagedUnit) facing 0.00 degrees
-
-
-
-





Else - Actions
-
-
-



Else - Actions
-




Set FireStack[(Custom value of GDD_DamagedUnit)] = GDD_Damage
-
-
-
-
I have no clue how to make the fire spread. I want to to spread towards a random nearby building within 150 of Damaged_Unit But the fire has short attack range and can't move so not all buildings are near enough. Also, some areas or buildings might already be occupied by a fire, and I don't want to stack fires on-top one another. Ideas?
Last edited:













