Jump to content
Sign in to follow this  
mjr.hassle

Use map click to spawn object?

Recommended Posts

I've been looking for a way to spawn a windsock with the on map click command, but after several hours and many coffees I've found nothing apart from the name of the object (hsim_misc_h_windsock) :(

I was wondering if anyone knows of any similar script they could point out? I didn't find anything in the A2 section. The closest scripts I found all spawned objects at pre determined markers etc.

I'm at a loss to be honest. Any help or pointers would be greatly appreciated, and will save what little hair I have left. ;)

Share this post


Link to post
Share on other sites

Oksman did a tutorial on 'onMapClick' command. You just need to find his tutorial for spawning. Ideally you would have your on map click execute a script that has the createVehicle command in.

Share this post


Link to post
Share on other sites

I think you're looking for onMapSingleClick. Something like:

onMapSingleClick "'Windsock_H' createUnit [_pos, group player]; true;"

I have not tested that, but hopefully it should get you on your way...

Hope that helps! ;-)

Edited by Sven2157

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  

×