Anyone have example to put marker to native map for only one player? Please share code. Thank you.
Adding points to in-game map?
Discussion in 'Rust Development' started by Rustishka 2, Apr 5, 2018.
-
I am looking to add custom icons (or dots) to the in game map to mark a location of interest. Does anyone have a code example of how to do this?
-
Code:
var mapMarker = GameManager.server.CreateEntity("assets/prefabs/tools/map/genericradiusmarker.prefab", pos) as MapMarkerGenericRadius; mapMarker.alpha = 1; mapMarker.color1 = Color.red; mapMarker.color2 = Color.red; mapMarker.radius = 1f; mapMarker.Spawn(); mapMarker.SendUpdate();
-
-
-
-
-
-
hi guis can we change radius color by icon ? or other ?
-
-
Can you give me an example. I used this code it work fine
var mapMarker = GameManager.server.CreateEntity("assets/prefabs/tools/map/genericradiusmarker.prefab", pos) as MapMarkerGenericRadius;
mapMarker.alpha = 1;
mapMarker.color1 = Color.red;
mapMarker.color2 = Color.red;
mapMarker.radius = 1f;
mapMarker.Spawn();
mapMarker.SendUpdate(); -
-
-
someOne can help for custom icon ?
-
-
I will pay you with 10k stone and will throw in an empty water bottle. Redeemable only on my server tho
-
Nop thanks i want juste to anderstand no buy a plugin
-
-
-
I want to try to replace default map by an other image (add manuali icons on photoshoo) or add icons on default map