Announcement

Collapse

Forum Rules

  • No flaming or derogatory remarks, directly or through insinuation.
  • No discussion, sharing or referencing illegal software such as hacks, keygen, cracks and pirated software.
  • No offensive contents, including but not limited to, racism, gore or pornography.
  • No excessive spam/meme, i.e. copious one liners in a short period of time, typing with all caps or posting meme responses (text/image).
  • No trolling, including but not limited to, flame incitation, user provocation or false information distribution.
  • No link spamming or signature advertisements for content not specific to Dota 2.
  • No Dota 2 key requests, sell, trade etc.
  • You may not create multiple accounts for any purpose, including ban evasion, unless expressly permitted by a moderator.

  • Please search before posting. One thread per issue. Do not create another thread if there is an existing one already.
  • Before posting anything, make sure you check out all sticky threads (e.g., this). Do not create new threads about closed ones.
  • It is extremely important that you post in correct forum section.

  • Balance discussion only in Misc.
  • All art related (such as hero model) feedbacks go to Art Feedback Forum.
  • All matchmaking feedback should go here: Matchmaking Feedback
  • All report/low priority issues should go here: Commend/Report/Ban Feedback
  • No specific workshop item feedback. These should go to workshop page of that item.
  • When posting in non-bugs section (such as this), use [Bugs], [Discussion] or [Suggestion] prefix in your thread name.



In case you object some action by a moderator, please contact him directly through PM and explain your concerns politely. If you are still unable to resolve the issue, contact an administrator. Do not drag these issues in public.



All rules are meant to augment common sense, please use them when not conflicted with aforementioned policies.
See more
See less

A few question about vague function names

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • A few question about vague function names

    Hello,

    I wanted to start and have a look at the custom game API and noticed that entities have these 2 functions. What's the difference? I assume GetAbsOrigin() is the current entity location, but then, what would GetOrigin() be?
    Unfortunately the wiki is very vague. I come from the Bot Scripting forum and unfortunately, the D2 bot API has different function names (f.e. GetLocation() gets the curent coords, courier is handled differently etc.). Trying to map what I know from there on what I can guess in here, but the API is so much bigger in the custom games section.


    Thanks
    Explanations on the normal, high and very high brackets in replays: here, here & here
    Why maphacks won't work in D2: here

  • #2
    https://moddota.com/forums/discussio.../#Comment_7472 , also GetAbsOrigin() works on both client and server.

    Comment


    • #3
      Ah, thank you, thank you

      So I noticed that beetles are examples of attached entities .
      What's other parent-child example in term of entities in the DOTA universe? Is it clone related ? Do pets count? (CM's decorative puppy or Bristle's armadillo). Or must it be something that is literally dependent on another entity's position to actually move? Let's say a skateboard - if such an object would exist in DOTA
      What about Undy's zombies?

      Normally I think of bones when I hear talking about parents and attachments (and other skeletal mesh related topics), not entities Do cosmetics count as entities? (let's say Invo's orb wisps)

      Originally posted by KreeG View Post
      also GetAbsOrigin() works on both client and server.
      Since you specifically mentioned that, I assume GetOrigin() is server-side only, correct?
      Last edited by The Nomad; 05-29-2017, 09:09 AM.
      Explanations on the normal, high and very high brackets in replays: here, here & here
      Why maphacks won't work in D2: here

      Comment


      • #4
        What's other parent-child example in term of entities in the DOTA universe?
        I'm not sure how it works in DOTA, but when I tried to recreate Riki's Ultmate with scepter I used parenting.
        Do pets count?
        I don't know how they implemented but I guess it's just npc with own script.

        Do cosmetics count as entities?
        Yes, "dota_item_wearable".

        Invo's orb
        I guess it's just particles that attached to bones of hero.

        server-side only
        Yes.

        Comment


        • #5
          Thank you for your patience and answers And SetOwner() ? Is that for summoned/dominated units ? (i.e. the "owner" of the "minion" - that's what they're called in the Bot API - is f.e. Druid vs Spirit Bear or Enigma vs Eidelons)
          Explanations on the normal, high and very high brackets in replays: here, here & here
          Why maphacks won't work in D2: here

          Comment


          • #6
            Yes

            Comment

            Working...
            X