Spawning Units

garion992

TH.net Regular
Reaction score
17
hi all, i wanted to make a trigger that if you type a string you get units. trigger:
Code:
Create Units
    Events
        Player - Player 1 (Red) types a chat message containing create  as A substring
    Conditions
    Actions
        Unit - Create (Integer((Substring((Entered chat string), 8, 9)))) (Unit-type((Substring((Entered chat string), 14, (Length of (Entered chat string)))))) for (Player((Integer((Substring((Entered chat string), 11, 12)))))) at (Center of (Playable map area)) facing Default building facing degrees

so if player 1 types create 05 01 hfoo, there will spawn 5 footman for player 1.
but it doesnt works, can someone help?

Thx Garion992
 

Rheias

New Helper (I got over 2000 posts)
Reaction score
232
Try "create 05 01 'hfoo'". Also make sure all the substrings' integers are correct, it is easy to get confused with those.
 
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