How about using a Upgrade, that enables the Ability? And then add a requirement to the Ability that the Upgrade must be researched.
Reasearching a Upgrade can be done by triggers.
The Event will not fire when you convert a Preset into an Unit as third Parameter (tested it out).
Let's see, if there's an other event, that would work...
Edit:
Found nothing that would do the job, but you can use a hardcore (baaad) Variant:
Use a periodic Timer Event, that checks if Any Unit of Player 1 is in Range of Any Unit of Player 2...
Not pretty, but functional.
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
0
@Mesden: Go
How about using a Upgrade, that enables the Ability? And then add a requirement to the Ability that the Upgrade must be researched.
Reasearching a Upgrade can be done by triggers.
0
The Event will not fire when you convert a Preset into an Unit as third Parameter (tested it out). Let's see, if there's an other event, that would work...
Edit:
Found nothing that would do the job, but you can use a hardcore (baaad) Variant:
Use a periodic Timer Event, that checks if Any Unit of Player 1 is in Range of Any Unit of Player 2...
Not pretty, but functional.
0
@copperfront: Go
Would be much easier. Do it like gorang said, but use the player as index in the array (players ar represented as integer in sc2)
Don't forget to initialize the region array with yout player regions...
Cheers Then
0
@anteevy: Go
I've seen a explanation how those Multi-Variation Models work: http://forums.sc2mapster.com/development/map-development/2614-multiple-models-for-1-unit-o_o/#p3
But for your Problem:
I've tried this myself with a Hero that used one of the Colonist Models... Hope this helps you.
Cheers Then
0
@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.
0
I'm trying this in the opposite way: what to have cloak without that glow. Any ideas?
0
@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.
0
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