ok i cant figure it out but i have seen it before so if you know how to do this please help, lol.
Variable - Set UnitArray[1] = Value
OR
Variable - Set UnitGroup[1] = Value
Already have this one
Archon = Archon <Game Link - Unit> and set with-->Variable - Set Archon = Archon but that is unit Type variable.
I want to set the spot "1" as an archon. but when i click on Value it goes to the unit field along the top and dont know how to get it to archon,.. anyway i can set an array (1) to the unit archon? or what function do i use to make it to archon? i dont know, thanks for any help.
Quote from LaxSalmon:
I had this problem too. You must do a set variable action in map initialization or when u want it.
----
yes know how to SET the variable, i just dont know how to get the variable to read that the marine is in an array and in position 1
Variable - Set UnitArray[1] = Value (unit type?marine?)
OR
Variable - Set UnitGroup[1] = Value (unit type?marine?)
Already have this one:
Archon = Archon <Game Link - Unit> and set with-->Variable - Set Archon = Archon but that is unit Type variable not a unit variable also not in an array...
Unit Type =/= Ingame Unit
Anything with "Game Link" in it == Reference to Data Editor (Unit Type, Behaviors, Effects, Weapons, Actors, etc.)
You want a Unit variable, not a game link.
How to get your unit into the variable depends entirely on when and where it is created.
Through trigger: Use "Last Created Unit" after the action it is created with
Pre Placed: Set variable at initialization, click "value", find the unit on the list
Through Data (Abilities/Effects): "Any Unit is Created" event, then use "Created Unit" to reference to it.
ok i cant figure it out but i have seen it before so if you know how to do this please help, lol.
Variable - Set UnitArray[1] = Value
OR
Variable - Set UnitGroup[1] = Value
Already have this one
Archon = Archon <Game Link - Unit> and set with-->Variable - Set Archon = Archon but that is unit Type variable.
I want to set the spot "1" as an archon. but when i click on Value it goes to the unit field along the top and dont know how to get it to archon,.. anyway i can set an array (1) to the unit archon? or what function do i use to make it to archon? i dont know, thanks for any help.
What is your question exactly?
There are different variable types
I had this problem too. You must do a set variable action in map initialization or when u want it.
@SouLCarveRR:
tring to set marine to an array position 1.
Quote from LaxSalmon:
I had this problem too. You must do a set variable action in map initialization or when u want it.
----
yes know how to SET the variable, i just dont know how to get the variable to read that the marine is in an array and in position 1
Variable - Set UnitArray[1] = Value (unit type?marine?)
OR
Variable - Set UnitGroup[1] = Value (unit type?marine?)
Already have this one:
Archon = Archon <Game Link - Unit> and set with-->Variable - Set Archon = Archon but that is unit Type variable not a unit variable also not in an array...
Tell us why you're trying to set a unit to a variable and we'll probably be able to help more easily.
@tdhsst: Go
Unit Type =/= Ingame Unit
Anything with "Game Link" in it == Reference to Data Editor (Unit Type, Behaviors, Effects, Weapons, Actors, etc.)
You want a Unit variable, not a game link.
How to get your unit into the variable depends entirely on when and where it is created.
Through trigger: Use "Last Created Unit" after the action it is created with
Pre Placed: Set variable at initialization, click "value", find the unit on the list
Through Data (Abilities/Effects): "Any Unit is Created" event, then use "Created Unit" to reference to it.
@TheAlmaity:
AH! thank you! so i will just creat a trigger setting this..
event:unit enters entire map
Condition, triggering unit=unit
action: set array.....
(solved end thread) :D