DangerRuss
OpenDayZ Rockstar!
So I've asked this question on here in the past but I still can't get this to work quite right.
I will include the 2 scripts in question below. 1 is the helicopter script and the other is the carepackage script.
Here is an explanation of my problem;
The server spawns a helicopter which flies across the map, drops a carepackage somewhere at random, and flies away and eventually despawns.
The carepackage lands somewhere and players can go and loot it.
I decided to add markers on the carepackages so that players can see where they've landed on the map. When a player approaches the carepackage, a message is displayed to the server letting the players know someone is looting it, and then that carepackage marker is removed from the map.
My problem is, I can't seem to get a marker to display on each carepackage because I dont know how to assign a different marker name. After the first carepackage lands, if no player captures it, than no other carepackage after that shows a marker on the map until the first one is captured.
https://pastebin.com/svtx7vN2
https://pastebin.com/mJABEzpQ
I will include the 2 scripts in question below. 1 is the helicopter script and the other is the carepackage script.
Here is an explanation of my problem;
The server spawns a helicopter which flies across the map, drops a carepackage somewhere at random, and flies away and eventually despawns.
The carepackage lands somewhere and players can go and loot it.
I decided to add markers on the carepackages so that players can see where they've landed on the map. When a player approaches the carepackage, a message is displayed to the server letting the players know someone is looting it, and then that carepackage marker is removed from the map.
My problem is, I can't seem to get a marker to display on each carepackage because I dont know how to assign a different marker name. After the first carepackage lands, if no player captures it, than no other carepackage after that shows a marker on the map until the first one is captured.
https://pastebin.com/svtx7vN2
https://pastebin.com/mJABEzpQ