• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

How can I do this

Status
Not open for further replies.
Level 7
Joined
Aug 15, 2012
Messages
318
I would like to make a trigger that when your hero enters region it creates the duplicate hero not far away for neutral hostile that you have to kill as a quest. If someone can give me a quick explaination on how to do this id appreaciate it I am working on finishing my RPG which I will upload here within the next few weeks as a beta test.
 
Level 25
Joined
May 11, 2007
Messages
4,651
Pseudo code for the problem.

Events: Unit enters region
Conditions: Player owner of unit not equal to neutral hostile
Unittype is hero
Actions:
set temppoint1 = positionOf(triggering unit)
unit create 1 unit-type of triggering unit at temppoint1 for Neutral Hostile
remove temppoint1
 
Status
Not open for further replies.
Top