Camera locking, removing the units near Hero Tavern and all random command.

Molehole

New Member
Reaction score
2
Ok so I am pretty much a rookie in the World Editor. I already can do some basic things with triggers such as Hero Taverns and moving the Camera how I like. I have three questions:

------------------------------------------------------------------------------------------------------------------------
Firstly I'm doing so that if a player doesn't pick a hero in 30 seconds the hero will be automatically randomed to him. I'm using this guide on hero taverns: http://world-editor-tutorials.thehelper.net/herotavern.php

There is this trigger for Random Command with this Condition:

Conditions
(Number of units in (Units owned by (Triggering player) matching (((Matching unit) is A Hero) Equal to True))) Equal to 0

I have searched for the right condition now for over 30 minutes and can't find it! Where is the Condition "number of units"

------------------------------------------------------------------------------------------------------------------------
2nd question:

I have done so that left arrow key frees the camera and right arrow key locks your camera to your picked unit. The problem here is that the unit it picks is the sightgiving invisible locust peasant next to my hero tavern instead of my hero :D. In the map the player hasn't got any other units than the hero so I probably could fix it with a way of removing the sightgiving invisible locust peasant (But the problem is that I have to delete the peasants and then someone may have not already chosen hero and I need a random command :D). But what command would select this unit for me. I have already tried last created unit, targeted unit, triggering unit etc. nothing seems to work.
------------------------------------------------------------------------------------------------------------------------

So yeah I kinda have 2 problems blocking eachother now :D

Also would it be possible to make it so that your hero would respawn only after everyone has chosen their hero? Or would that be too hard.

P.S You don't have to answer to all of the question. Even a little tip would be enormously appreciated :) Thanks.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top