Advertisement
Guest User

Untitled

a guest
Nov 24th, 2017
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. testai_lua = class({})
  2. LinkLuaModifier("SimpleAI", LUA_MODIFIER_MOTION_HORIZONTAL)
  3.  
  4. function testai_lua:OnUpgrade()
  5. print("ai ability created");
  6.  
  7. local caster = self:GetCaster();
  8. caster:AddNewModifier(caster, self, "SimpleAI", {duration = 9999999})
  9.  
  10. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement