Jump to content
Sign in to follow this  
Royal_Blackwatch

Need help with user defined markers

Recommended Posts

Exactly two questions:

1. When setting a marker in game you can enter a description for it. So how is it possible to access this from a script?

2. When an enemy unit is spotted, the game places unit markers on the map. How can you access these?

Share this post


Link to post
Share on other sites

you can give your marker a name and then call it from the script.

for the second part, you place a trigger for spotting the unit you want, and the use this

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">marker_name SetMarkerPos [GetPos unit_that_you_spotted]<span id='postcolor'>

that should place the marker directly over the unit.

still, your marker must be set to "Empty" and when the trigger activates set it to "Target" or something else using "SetMarkerType" biggrin.gif

Share this post


Link to post
Share on other sites

Err.. Thats not the thing I meant

1. My intention was to access the name (eg. the script is waiting for a user defined marker called Alpha1 (as a waypoint) and then moving a unit to this marker wether there are other markers or not) and

2. I meant to access the icons, whats the name of them (like "air" for an A10)

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  

×