• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

If statement?

Status
Not open for further replies.
Level 12
Joined
Dec 2, 2016
Messages
733
Gyazo - 4af6728c7a108c2775db5f2b8cd57730.png

Even though my picked unit is a vampire minion, if I have the if statement run the action if the picked unit is the vampire. It will not change him to hostile, yet if I have the if statement run the action if the vampire is not the picked unit it will make him hostile. It's like this thing is backwards.

If unit type of picked unit = vampireminion then
make hostile


Output: vamp is not made hostile

if unit type of picked unit ~= vampireminion then
make hostile

Output: vamp is made hostile
 
Status
Not open for further replies.
Back
Top