Well now. I haven't found the original code I was fooling around with, but I did find some old notes on interesting functions I had found and wanted to investigate back in the day.
Try something like this (Note: this should
NOT be used in the starter area as this might mess up your ability to complete the starter training quests)
|
Source code
|
1
2
3
4
5
6
7
8
9
10
|
-- I think this clears any current stuff in the Novice training goop
Novice_ClearAllState();
-- Get your current coordinates. You may need to provide the map ID to this function or 9999 for entire world.
local x,y = GetPlayerWorldMapPos();
-- Add an object to the world (in this case a bear). It doesn't animate but it should show up. Max of 10 objects IIRC.
Novice_AddObject("model\\character\\creature\\bear\\act_bear_cub.ros",x,0,y,0,1);
-- Use Novice_RemoveObject to remove the above bear, but I can't remember any parameters to this function. Possibly an index into the array for the Novice_* objects.
|
If the above works, you'll need to find a suitable model to use for your area marker. I think the parameters to Novice_AddObject are model-filename, X-coord, height-pos, Y-coord, unknown1, unknown2
The height-pos is ignored I think (I could be wrong there). Though the Novice funcs seem to use 0 soooo....
I have no idea what the last couple of parameters are but maybe play with that last one to see if it is a scale factor.
Edit:
Forgot to mention, you may need to multiply the coords returned by GetPlayerWorldMapPos by 100. At least, that is wat the MinimapFramePlayerPosition's OnUpdate function does,