Jump to content
Play3r

spawning a icon om map thru trigger

Recommended Posts

Hello 

 

I want to spawn a icon  on map after a trigger is fired 

i want to spawn the markers -> standard draw -> pickup (hd_pickup)

i have looked thru the WIKI but have not found anything that helps me.

any one who can give me the solution..

Share this post


Link to post
Share on other sites

The icons you speak of are called markers. Therefore you need createMarker scripting command. Use setMarkerType to set it's shape.

 

So, insert something like this into trigger on activation field:

marker1 = createMarker ["Marker1", position player];

"Marker1" setMarkerType "hd_pickup";

"Marker1" setMarkerColor "colorBLUFOR";

This will create marker, named "Marker1" on player's position, change it's type to "pickup" and set it's color to Blufor blue.

If you want to set custom position, see setPos with the rest of Arma 3 Scripting Commands.

  • Thanks 1

Share this post


Link to post
Share on other sites

Thanks Janez

 

i did not think about the createmarker only the spawn function 

i have changed a little bit, after reading up on it.

 

// _handle = execVM "SPAWN\ExfilMarker.sqf";
// after heal pilot


Marker1 = createMarker ["PICK UP",getMarkerPos "pickup"];

Marker1 setMarkerType "hd_pickup";

Marker1 setMarkerColor "colorBLUFOR";

  • Like 1

Share this post


Link to post
Share on other sites
2 hours ago, Play3r said:

Hello 

 

I want to spawn a icon  on map after a trigger is fired 

i want to spawn the markers -> standard draw -> pickup (hd_pickup)

i have looked thru the WIKI but have not found anything that helps me.

any one who can give me the solution..

On a sidenote, you can look at script commands sorted by functionality:

 

  1. Go to the Scripting Commands page
  2. Click Scripting Commands by Functionality
  3. Click Command Group: Markers

 

All there in plain text.

 

Cheers

  • Thanks 1

Share this post


Link to post
Share on other sites
2 hours ago, Grumpy Old Man said:

On a sidenote, you can look at script commands sorted by functionality:

 

  1. Go to the Scripting Commands page
  2. Click Scripting Commands by Functionality
  3. Click Command Group: Markers

 

All there in plain text.

 

Cheers

Thanks a lot did not know about that page. i guess you won't see me in this forum much more now :) 

Thanks for the links @Grumpy Old Man

  • Like 1

Share this post


Link to post
Share on other sites
3 minutes ago, Play3r said:

Thanks a lot did not know about that page. i guess you won't see me in this forum much more now :) 

Thanks for the links @Grumpy Old Man

Make sure to check out the alternative syntax for most scripting commands, quite a few neat additions in the last 2 years.

 

Cheers

Share this post


Link to post
Share on other sites
1 minute ago, Grumpy Old Man said:

Make sure to check out the alternative syntax for most scripting commands, quite a few neat additions in the last 2 years.

 

Cheers

reading the page right now..

there is a lot of examples to check out.

and i'm  just reading about markers..

  • Like 1

Share this post


Link to post
Share on other sites
3 hours ago, Play3r said:

Thanks a lot did not know about that page. i guess you won't see me in this forum much more now :) 

If anything, we should be seeing you MORE. The biki is just data. This forum is for sharing ideas, troubleshooting and improving code, etc. 

 

Regarding createMarker, don't miss the first note.

Share this post


Link to post
Share on other sites
10 hours ago, Harzach said:

If anything, we should be seeing you MORE. The biki is just data. This forum is for sharing ideas, troubleshooting and improving code, etc. 

 

Regarding createMarker, don't miss the first note.

@Harzach

it was meant as a joke.

i am happy to be at this forum everybody is ready to help..

so SURE i will stay at the forum..

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

×