Jump to content
  • CGWorldFrameHitFlags.HitTestLOS


    Pudge
    • Version: All Product: WRobot General Type: Suggestion Status: Not a Bug

    Hi @Droidz, have a question and suggestion.

    Why, by default, fight class conditions are checking TraceLineGo for ground textures between the bot's position and target's position but doesnt check another types of LOS, considering that you added this as HitTestLOS? For example game objects, I've have noticed that LOS check for this works pretty well. But there is a little measurement error: it returns true when the line between bot's position and target's position is "on the edge" of object model but the bot and the target can attack each other. 

    I recorded a video for some clarity and understandability:

     



    User Feedback

    Recommended Comments

    Pudge

    Posted

    Fix: fight conditions (not fight class, because I dont sure the fight class is checking traceline)

    Matenia

    Posted

    TraceLine.TraceLineGo returns false when there is no collision and true if there is a condition. 
    You need to negate the condition.

    You need to use hitflags WMO for spells.



    Create an account or sign in to comment

    You need to be a member in order to leave a comment

    Create an account

    Sign up for a new account in our community. It's easy!

    Register a new account

    Sign in

    Already have an account? Sign in here.

    Sign In Now

×
×
  • Create New...