Advertisement
epitaque_

Untitled

Jul 20th, 2015
563
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.56 KB | None | 0 0
  1. local crep = CreateUnitByName(CreepString, HSpawnEntity:GetAbsOrigin(), false, caster, caster, team)
  2. --crep:MoveToPositionAggressive(ancient[1]:GetAbsOrigin())
  3. local newOrder =
  4. {
  5.     UnitIndex = crep:entindex(),
  6.     OrderType = DOTA_UNIT_ORDER_ATTACK_MOVE,
  7.     TargetIndex = nil, --Optional.  Only used when targeting units
  8.     AbilityIndex = 0, --Optional.  Only used when casting abilities
  9.     Position = ancient[1]:GetAbsOrigin(), --Optional.  Only used when targeting the ground
  10.     Queue = 0 --Optional.  Used for queueing up abilities
  11. }
  12.  
  13. ExecuteOrderFromTable(newOrder)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement