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 is a ValidTarget?


  • Please log in to reply
3 replies to this topic

#1
altairirvv

altairirvv

    Newbie

  • Members
  • 7 posts

Hello everyone,

 

What makes a ValidTarget() call return true? What identifies a target as "ValidTarget"?

 

Jhin is not casting Q spell if I add ValidTarget as if condition. 

And even without ValidTarget, will only Cast Q if target isn't too close (almost if distance >= AA range).

 

Someone help please.

 

Thanks


  • 0

#2
Fl0at

Fl0at

    Reseller

  • Members
  • 604 posts

a target thats valid


  • 0

#3
iglor713

iglor713

    Advanced Member

  • Members
  • 92 posts

ValidTarget(unit, range)

 

return true if unit:

* is not dead

* is targetable (for example vlad with W is not)

* is visible (if not then return wrong unit position x,y,z)

* is in range

* is valid (idk but there is unit.isvalid :) )


Edited by iglor713, 09 January 2018 - 11:05 .

  • 2

#4
altairirvv

altairirvv

    Newbie

  • Members
  • 7 posts

ValidTarget(unit, range)

 

return true if unit:

* is not dead

* is targetable (for example vlad with W is not)

* is visible (if not then return wrong unit position x,y,z)

* is in range

* is valid (idk but there is unit.isvalid :) )

Hmm, thank you, Iglor.

 

That's not the problem, then.

I just don't get why it won't cast any spell if target is too close. Is it a Orbwalk thing?


  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users