Jump to content
Sign in to follow this  
perezmh

Moving Shrinking Hidden-to-Most Marker

Recommended Posts

Hello ARMA people. I'm attempt to write something along the lines of this:

 

Circular marker that is several km large exists (marker1). It can only be seen by specifically named player units (cansee1, cansee2 etc). This marker is attached to a player (marked1). The marker is offset from the location of the player, a random distance and direction from them(offsetDist1, offsetDir1). The offset can be up to 1km away from the marked1. As time progresses in the mission marker1 and offset1 shrink by 1/4 their previous size, say every 5 minutes. Eventually, the elliptical marker becomes just a dot which is attached to the player.

 

I know how to create the elliptical marker and attach it to a unit. I somewhat know how to code the offset to function with the marker but I can't seem to get it right. However, I keep messing up the locality (I think) of the marker to ensure only those specific units can see it. I also am not sure how to get the marker/offset to reduce in size. I believe I need to remove the marker and redraw it with the reduced sizes but the organization of the whole thing is beyond me right now. 

 

If anyone has any suggestions on how I should be writing this I'd appreciate it. Particularly with the marker locality thing as it has driven me mad. I'm still a novice in scripting anything but slowly I'm getting better. Cheers.

Share this post


Link to post
Share on other sites

Make sure you operate only with xxxxMarkerLocal commands and use remoteExec targeted to whatever users you need to see it.

 

The commands you most likely will need to use to adjust position and size

 

https://community.bistudio.com/wiki/setMarkerPosLocal

https://community.bistudio.com/wiki/setMarkerSizeLocal

 

PS I also suggest you do not attach marker but generate random offset when player opens map so that it is not possible to tell the direction in which marked player is going by watching attached marker move

Share this post


Link to post
Share on other sites

Make sure you operate only with xxxxMarkerLocal commands and use remoteExec targeted to whatever users you need to see it.

 

The commands you most likely will need to use to adjust position and size

 

https://community.bistudio.com/wiki/setMarkerPosLocal

https://community.bistudio.com/wiki/setMarkerSizeLocal

 

PS I also suggest you do not attach marker but generate random offset when player opens map so that it is not possible to tell the direction in which marked player is going by watching attached marker move

 

Thank you for this. I hadn't been using xxxMarkerLocal and I feel very dumb for not having noticed them on the wiki when I learned to set them originally. I think I can sort out that part at least. I'll reply here eventually with what I have so far if I don't manage it.

As for the marker attaching, I do want the players to know the direction the marked player is going, just not very accurately. As time goes on I want them to definitely be able to follow them and reach them. Though you suggestion of making the offset change when the player opens their map sounds like it would be neat to figure out. I'll try to do that and see how it goes. 

 

Also thanks for all your help, your tutorials and syntax highlighter have gotten me to create a lot of great missions in the past. Cheers for that!

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  

×