Since days I stick with a problem:
I want to create a Actor or Unit wich is only visible to a single Player.
Tried to do do it with the Actor-Filter Property but this done nothing.
Setting Actor's Model to Invisible via Catalog Field Value (with a Trigger) thrown an error (CatalogFieldNotSet or something like that).
Cloaking the Unit has done Invisibility, but then the unit hat this blue Glow and thats not what I wanted.
Haven't found a Actor Event wich would do the job...
Anybody an Idea for this?
Thanks for helping...
Cheers
Rkmx's code will not work unless SC2 has a GetLocalPlayer equivalent. Which it does not, to my knowledge.
I'm sorry, but I'm not entirely sure what you're trying to do is even possible.
I made this work using a copy of zeratuls ability "Permanetly Cloaked". Not sure how i got rid of the blue effect or unit blur.. I got the info from another thread on this forum, but i cant seem to find it right now.
What you have to do is go into the behaivor you want to use in the data editor, say "Permanently Cloaked", go to Behavior - Modification - State Flags (I disable "Combine Structure Values" to make it easier to find this). The you change the flag called "Bury" to "Enabled". This should remove the blue border and blur effect from the unit. After that i add the behavior to the unit i want by going to the unit and in the field "Behavior - Behaviors" add "Permanently Cloaked".
Done, the unit can now only be seen by the owning player without any additional effects. If you want to toggle the effect maybe the state flag is all that needs to be changed for the ability, but i havent tried that.
Hey everyone out there!
Since days I stick with a problem: I want to create a Actor or Unit wich is only visible to a single Player.
Tried to do do it with the Actor-Filter Property but this done nothing. Setting Actor's Model to Invisible via Catalog Field Value (with a Trigger) thrown an error (CatalogFieldNotSet or something like that). Cloaking the Unit has done Invisibility, but then the unit hat this blue Glow and thats not what I wanted. Haven't found a Actor Event wich would do the job...
Anybody an Idea for this? Thanks for helping... Cheers
Just a random thought, but maybe something like this?
Rkmx's code will not work unless SC2 has a GetLocalPlayer equivalent. Which it does not, to my knowledge. I'm sorry, but I'm not entirely sure what you're trying to do is even possible.
I made this work using a copy of zeratuls ability "Permanetly Cloaked". Not sure how i got rid of the blue effect or unit blur.. I got the info from another thread on this forum, but i cant seem to find it right now.
@ItsPawl: Go
Tried same with Nova's Cloak but, like I said before, it didn't work...
@Fellius: Go
Thought so. That would hide the Unit for all because this action is synchronously done by all player.
No, it can be done.
What you have to do is go into the behaivor you want to use in the data editor, say "Permanently Cloaked", go to Behavior - Modification - State Flags (I disable "Combine Structure Values" to make it easier to find this). The you change the flag called "Bury" to "Enabled". This should remove the blue border and blur effect from the unit. After that i add the behavior to the unit i want by going to the unit and in the field "Behavior - Behaviors" add "Permanently Cloaked".
Done, the unit can now only be seen by the owning player without any additional effects. If you want to toggle the effect maybe the state flag is all that needs to be changed for the ability, but i havent tried that.
@ItsPawl: Go
Thanks a lot! I figured out that it was even enough to set the unit flag Buried to enable for removing the glow.