problem with return in GetAtScreenXY functions (Solved)

Started by Theme, Thu 09/06/2005 17:25:43

Previous topic - Next topic

Theme

how I get the return of the following functions in a variable?

Object.GetAtScreenXY(mouse.x,mouse.y)
Character.GetAtScreenXY(mouse.x,mouse.y)
Hotspot.GetAtScreenXY(mouse.x,mouse.y)

I tried int and string variables but it says it doesnt match

monkey0506

#1
Object* objAt = Object.GetAtScreenXY(mouse.x, mouse.y);
Hotspot* hotspotAt = Hotspot.GetAtScreenXY(mouse.x, mouse.y);
Character* charAt = Character.GetAtScreenXY(mouse.x, mouse.y);

;)

Also, if you need to use legacy code (I think that's what it's called now...), you can then do something like objAt.ID to get the object's number. ;)

Theme

thanks for the help monkey
i just finished my coin gui

o/

SMF spam blocked by CleanTalk