This site works best with JavaScript enabled. Please enable JavaScript to get the best experience from this site.
Hi, I am trying to make Magnetic field system like PUBG with CActorRange.
I've got some clue.
After modifying the radius via catalog, you probably need to create new copy of this actor, and destroy existing one.
How do I create and destroy CActorRange via Trigger?
I tried like this.I can handle CActorRange in Game world.
But I Can't handle CActorRange in Minimap.
This is trigger what I made.
Actor -Create a OUT_CIRCLE actor in the scope (Actor scope for MagneticField) with content parameters null, null, null Variable -Set Circle_out = (Last created actor) Actor -Send message "Destroy" to actor Circle_out Variable -Set lv_OutCircle = (Value of Actors OUT_CIRCLE Range for player 0 as an real) Variable -Modify lv_OutCircle: - 10 Catalog -Set value of Actors OUT_CIRCLE Range for player 0 to (String(lv_OutCircle) with Any Precision decimal places) Actor -Create a OUT_CIRCLE actor in the scope (Actor scope for MagneticField) with content parameters null, null, null Variable -Set Circle_out = (Last created actor)
Actor -Create a OUT_CIRCLE actor in the scope (Actor scope for MagneticField) with content parameters null, null, null
Variable -Set Circle_out = (Last created actor)
Actor -Send message "Destroy" to actor Circle_out
Variable -Set lv_OutCircle = (Value of Actors OUT_CIRCLE Range for player 0 as an real)
Variable -Modify lv_OutCircle: - 10
Catalog -Set value of Actors OUT_CIRCLE Range for player 0 to (String(lv_OutCircle) with Any Precision decimal places)
Why you need a real type variable?
What about making the actor require a buff that you apply/remove with triggers?
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
In reply to DrSuperEvil:
Hi, I am trying to make Magnetic field system like PUBG with CActorRange.
I've got some clue.
How do I create and destroy CActorRange via Trigger?
I tried like this.
I can handle CActorRange in Game world.
But I Can't handle CActorRange in Minimap.
This is trigger what I made.
Why you need a real type variable?
What about making the actor require a buff that you apply/remove with triggers?
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
In reply to DrSuperEvil:
Especially, the Out-circle is flexible in size.