SC2Mapster Forums

Resources > Tutorials

[Tutorial, Trigger, Data]Show/Hide/Destroy Any Given Actor For Specified Players Only

    #21 May 03, 2011 at 04:16 UTC - 0 likes
    Quote from Sneakervek: Go

    I know it's been awhile but I've been playing with this trying to get it to work on doodads. Right now I can send a message to doodads in a region with send actor message to game region with filters.

            SendActorMessageToGameRegionWithFilters(r, c_actorIntersectAgainstRadiusContact, "Create SH_AA", "Doodad", "")
            SendActorMessageToGameRegionWithFilters(r, c_actorIntersectAgainstRadiusContact, "AliasAdd _TriggerTarget", "Doodad", "")
    
            Actor - Send actor message "Create SH_AA" to all actors that intersect game region Region with their Contact Radius that belong to class "Doodad" and match terms ""
            Actor - Send actor message "AliasAdd _TriggerTarget" to all actors that intersect game region Region with their Contact Radius that belong to class "Doodad" and match terms ""
    

    But I'm having a hard time sending the messages signal show signal hide and eventually destroy to the newly attached actors.

    I can send a message to every doodad in the map to destroy via the region thing so I know the messages are reaching all the doodads.

    This tutorial is for show/hide specified actors. Actor Regions, is a bit different. I would have it done in my future tutorial, actually it's much easier. But Im quite busy recently.

    Actually the "Phasing Tech" series will have three tutorials. This artcle is just the first one, for beginner. The second one the true "Phasing Tech", which would have a universal custom function "Send Actor Message To Actor For Player Group", allows you send ANY message asyncly, and doesn't need to modify the agent actor. The third one would be send message to a actor region asyncly, and it is the most easy one.

    #22 May 05, 2011 at 05:01 UTC - 0 likes

    @Renee2islga: Go

    Well the whole point of it is to hide doodads for a player in a region. The problem is getting the agent attached and removed for the hide messages to be sent. I was thinking that perhaps I should just create the agent for every doodad on the map and just send the hide message to it and not destroy it but that's basically doubling the number of doodad actors.

    Avatar of Destiny

    Avatar of Destiny ORPG featuring 22 classes and extensive custom UI and features.

    #23 Oct 20, 2011 at 14:48 UTC - 0 likes

    Sorry for your long waiting

    Here it is, I added my new Phasing Tech into this Trigger/Data Lib Mod:
    http://www.sc2mapster.com/forums/resources/project-workplace/27296-gax3-star-craft-ii-editor-enchant-mod-download-develop/

    As I promised, the new Phasing Tech can phasing ALL actors in a region (and you can set the filter). And can also send ANY actor message asynchronously.

    In fact, I did it half years ago... and have wrote a second tutorial in Chinese.

    http://bbs.islga.org/read-htm-tid-53755.html

    But the theory is too complicated, so It is hard for me to localize the 2nd tutorial into English (You know, my English is poor).

    As a result, I made it into my all-purpose Editor Enchant Mod - GAx3. With this Mod, you can use my new Phasing Tech easily, and doesn't need to know the theory behind it.

    And the Mod itself isn't encrypted, and its code haven't been confused too, so if you have interest in code behind it, you can still look at it's source code.

    Last edited Oct 20, 2011 by Renee2islga
    #24 Mar 24, 2012 at 18:31 UTC - 0 likes

    Man, i want to say you big thanks for this tutorial. It's very usefull. Will credit you in my map. Good job.

    #26 Dec 15, 2012 at 12:40 UTC - 0 likes

    Thanks for this amazing tutorial :D this was just what I was looking for to make players able to keep items on the ground hidden for other players.

    #27 Feb 06, 2013 at 20:00 UTC - 0 likes

    Is there a way to do this to all actors in a scope?

You must login to post a comment. Don't have an account? Register to get one!