I'm working on a map right now, and I was hoping to find a method to create a circle of fire that deals damage to players, and slowly shrinks over time to a randomized location. This is for a mechanic similar to Battle Royale mechanics in games like PUBG or Fortnite where the circle shrinks over time, forcing players to get grouped together.
I was thinking the Wall of Fire may be a good unit to work off of, but I can't think of a way to do this so far. Do you guys have any ideas?
Rollback Post to RevisionRollBack
I also go by Krazymouse in SC2.
Past works: Cat and Mouse Winter Revival, Wrong Weapons Mod
Just use a Convert Circle To Region function and have a model whose scale is calibrated to the region radius. You use a Periodic Event to use a Modify Variable action to adjust a global Integer variable and a Send Actor Message action to adjust the model scale based on the new variable value. For the damage you just use Unit Enters/Leaves Region>If Then Else with a Units In Region Matching Condition function as a condition>Set Behavior Count. The Buff behaviour then does a periodic Damage effect and has the Model type actors for the visuals.
Rollback Post to RevisionRollBack
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
^^ This is a solid answer. Can you set the value for model scale in Send Actor Message to a variable though? I didn't think you could.
I'd like to also add that you could use the Convert Circle To Region action repeated X times (like 2-3 times per second should be plenty), with the radius of the circle being an integer that decreases over time, giving the effect area that "shrinking" phenomenon. You may just have to do a little math and testing to make the actor itself do its thing to make sure it runs parallel to the effect area.
You can using Convert String To Actor Message and then the Combine Stings Multiple functions. The rest is pretty straight forward using a convert integer to string and then using a variable for the integer.
Rollback Post to RevisionRollBack
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
Hello!
I'm working on a map right now, and I was hoping to find a method to create a circle of fire that deals damage to players, and slowly shrinks over time to a randomized location. This is for a mechanic similar to Battle Royale mechanics in games like PUBG or Fortnite where the circle shrinks over time, forcing players to get grouped together.
I was thinking the Wall of Fire may be a good unit to work off of, but I can't think of a way to do this so far. Do you guys have any ideas?
I also go by Krazymouse in SC2.
Past works: Cat and Mouse Winter Revival, Wrong Weapons Mod
Just use a Convert Circle To Region function and have a model whose scale is calibrated to the region radius. You use a Periodic Event to use a Modify Variable action to adjust a global Integer variable and a Send Actor Message action to adjust the model scale based on the new variable value. For the damage you just use Unit Enters/Leaves Region>If Then Else with a Units In Region Matching Condition function as a condition>Set Behavior Count. The Buff behaviour then does a periodic Damage effect and has the Model type actors for the visuals.
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
https://www.sc2mapster.com/forums/resources/tutorials/179654-data-actor-events-message-texture-select-by-id
https://media.forgecdn.net/attachments/187/40/Screenshot2011-04-17_09_16_21.jpg
^^ This is a solid answer. Can you set the value for model scale in Send Actor Message to a variable though? I didn't think you could.
I'd like to also add that you could use the Convert Circle To Region action repeated X times (like 2-3 times per second should be plenty), with the radius of the circle being an integer that decreases over time, giving the effect area that "shrinking" phenomenon. You may just have to do a little math and testing to make the actor itself do its thing to make sure it runs parallel to the effect area.
<Click Here> To See My Epic Single Player Campaign (LifeForceCampaign.com)
You can using Convert String To Actor Message and then the Combine Stings Multiple functions. The rest is pretty straight forward using a convert integer to string and then using a variable for the integer.
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
https://www.sc2mapster.com/forums/resources/tutorials/179654-data-actor-events-message-texture-select-by-id
https://media.forgecdn.net/attachments/187/40/Screenshot2011-04-17_09_16_21.jpg