Jump to content
Sign in to follow this  
Smoot178

Tacking Modules/Markers Onto Players

Recommended Posts

I am looking for a solution to being able to tack markers and modules (the actual module entity) to players.

I want to be able to in a sense attach a marker to a player and show the position it is in on the map (of course using the marker). The other thing I am trying to do is tack the Construction module onto the player since the build radius of the Module is relative to where the module is on the map and I am trying to make an engineer build things on the field.

Thanks.

Edit: Alright well I found out the AttachTo command works on Modules but not markers. Half of my problem has been solved!

Edit2: Alright so I take that back. I am able to attach the module to a truck (which is what I want) and drive it around and it works great. Problem is, if the truck dies and respawns the module doesn't follow. It stays back at the last position.

Edited by Smoot178

Share this post


Link to post
Share on other sites

Moving map markers for showing player positions can be done entirely on client side. Make an infinite loop and use getPos + createMarkerLocal and his friends to set local marker position, type, shape, color or text.

Share this post


Link to post
Share on other sites

How would I create an infinite loop anyways :P

Share this post


Link to post
Share on other sites

How about:

while {true} do

{

//update marker(s) here

sleep 1; //one second delay between updates

};

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×