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

WorldToMinimap broken?

WorldToMinimap

Best Answer Feretorix , 28 October 2015 - 02:22

Let me check this real quick.

 

Needs fixing, wait a second for a GoS.dll update. :fappa:

OnDrawMinimap(function()
 
local myHero = GetMyHero();
local myorigin = GetOrigin(myHero);
 
minipos = WorldToMinimap(myorigin);
 
DrawText("me!",12,minipos.x,minipos.y,ARGB(255,255,255,255));
 
end)

Edit: It's fixed now, enjoy!

Go to the full post »


  • This topic is locked This topic is locked
12 replies to this topic

#1
ilovesona

ilovesona

    Sona's wife

  • Contributor
  • 1,096 posts
OnTick(function(myHero)
  local minipos = WorldToMinimap(GetOrigin(myHero))
  PrintChat("x:"..minipos.x.." y:"..minipos.y)  
end)

i use this code, but x, y always 0 :dogecry:


  • 0

#2
Deftsu

Deftsu

    donthackourgames

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

OnDrawMinimap(function()

 

Use this instead of OnTick(function(myHero).


  • 0

#3
ilovesona

ilovesona

    Sona's wife

  • Contributor
  • 1,096 posts

OnDrawMinimap(function()

 

Use this instead of OnTick(function(myHero).

same, also tried OnDraw 


  • 0

#4
Feretorix

Feretorix

    Administrator

  • Administrators
  • 3,177 posts
✓  Best Answer

Let me check this real quick.

 

Needs fixing, wait a second for a GoS.dll update. :fappa:

OnDrawMinimap(function()
 
local myHero = GetMyHero();
local myorigin = GetOrigin(myHero);
 
minipos = WorldToMinimap(myorigin);
 
DrawText("me!",12,minipos.x,minipos.y,ARGB(255,255,255,255));
 
end)

Edit: It's fixed now, enjoy!


  • 0

#5
Deftsu

Deftsu

    donthackourgames

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

Let me check this real quick.
 
Needs fixing, wait a second for a GoS.dll update. :fappa:

OnDrawMinimap(function()
 
local myHero = GetMyHero();
local myorigin = GetOrigin(myHero);
 
minipos = WorldToMinimap(myorigin);
 
DrawText("me!",12,minipos.x,minipos.y,ARGB(255,255,255,255));
 
end)

Edit: It's fixed now, enjoy!

thanks ! i can release my Opie OP utility script now. :D
  • 0

#6
ilovesona

ilovesona

    Sona's wife

  • Contributor
  • 1,096 posts

Let me check this real quick.

 

Needs fixing, wait a second for a GoS.dll update. :fappa:

OnDrawMinimap(function()
 
local myHero = GetMyHero();
local myorigin = GetOrigin(myHero);
 
minipos = WorldToMinimap(myorigin);
 
DrawText("me!",12,minipos.x,minipos.y,ARGB(255,255,255,255));
 
end)

Edit: It's fixed now, enjoy!

thx, next question

 

how can i drawCircle on minimap instead? Keppo


  • 0

#7
Deftsu

Deftsu

    donthackourgames

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

thx, next question
 
how can i drawCircle on minimap instead? Keppo


change DrawText to DrawCircle :3
  • 0

#8
ilovesona

ilovesona

    Sona's wife

  • Contributor
  • 1,096 posts

change DrawText to DrawCircle :3

:fappa:


  • 0

#9
Deftsu

Deftsu

    donthackourgames

  • Ex-Core Dev
  • PipPipPip
  • 4,812 posts
im serious, try to DrawCircle on minipos
  • 0

#10
ilovesona

ilovesona

    Sona's wife

  • Contributor
  • 1,096 posts

im serious, try to DrawCircle on minipos

ok, tell me how?

 

where can i get the xyz?


  • 0

#11
Deftsu

Deftsu

    donthackourgames

  • Ex-Core Dev
  • PipPipPip
  • 4,812 posts
minipos = WorldToMinimap(GetOrigin(GetMyHero()))

this should return xyz
  • 0

#12
ilovesona

ilovesona

    Sona's wife

  • Contributor
  • 1,096 posts

minipos = WorldToMinimap(GetOrigin(GetMyHero()))

this should return xyz

WorldToMinimap only return xy :fappa:


  • 0

#13
Deftsu

Deftsu

    donthackourgames

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

WorldToMinimap only return xy :fappa:

yeah i see keppo, you need to make some magic function to draw a circle by drawing a text Kappa


  • 0




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users