Jump to content

Welcome to Gaming On Steroids Forums
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account
Photo

What's this bug?


  • Please log in to reply
4 replies to this topic

#1
Meeboo

Meeboo

    Advanced Member

  • Scripts Developer
  • 786 posts
  • LocationUnited States
function LeeSin:OnCreateObj(obj)
		
	if obj.valid and obj.name:lower():find("ward") and obj.team == 0 then
		CastTargetSpell(obj,_W)
		Debug("Cast W")
	end

end

Anyone knows why Lee never uses W on ward and he sometimes doesn't kick target, just standstill ?

function LeeSin:OnTick()
		
	if InsecKey and ValidTarget(target) and W_Used then
		CastTargetSpell(target,_R)
		Debug("Kick "..target.charName)
	end

end

  • 0

#2
TheLittleNug

TheLittleNug

    Advanced Member

  • Members
  • 90 posts
  • LocationThe Least Educated City in America, Look It Up

I'm no expert...But I don't see anything wrong with it...It might just be something in the F7 settings?


  • 0

#3
Deftsu

Deftsu

    donthackourgames

  • Ex-Core Dev
  • PipPipPip
  • 4,812 posts

you can't cast in OnCreateObj, save wards in a table and use them later in OnTick


  • 0

#4
Zwei

Zwei

    Advanced Member

  • Contributor
  • 2,201 posts
Have you tried to make a debug print for the variables in the second snippet?
  • 0

#5
Meeboo

Meeboo

    Advanced Member

  • Scripts Developer
  • 786 posts
  • LocationUnited States

you can't ast in OnCreateObj, save wards in a table and use them later in OnTick

Thanks for your info


  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users