Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local crep = CreateUnitByName(CreepString, HSpawnEntity:GetAbsOrigin(), false, caster, caster, team)
- --crep:MoveToPositionAggressive(ancient[1]:GetAbsOrigin())
- local newOrder =
- {
- UnitIndex = crep:entindex(),
- OrderType = DOTA_UNIT_ORDER_ATTACK_MOVE,
- TargetIndex = nil, --Optional. Only used when targeting units
- AbilityIndex = 0, --Optional. Only used when casting abilities
- Position = ancient[1]:GetAbsOrigin(), --Optional. Only used when targeting the ground
- Queue = 0 --Optional. Used for queueing up abilities
- }
- ExecuteOrderFromTable(newOrder)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement