OFPEC Forum

Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting General => Topic started by: SniperUK on 21 Jun 2007, 15:05:50

Title: onMapSingleClick Issue
Post by: SniperUK on 21 Jun 2007, 15:05:50
Hi guys i am currently making alterations to one of my maps which will simulate an airstrike at any given location.
The commander will have access to a menu when he selects airstrike he will then be prompted to click a location on the map where he wants it to hit. I have scripted this as below:

Issue Fixed.
Title: Re: onMapSingleClick Issue
Post by: LCD on 21 Jun 2007, 15:18:21
change dis line

Code: [Select]
airstrikebomb = "Bo_GBU12_LGB" createvehicle _pos;
2 dis

Code: [Select]
airstrikebomb = "Bo_GBU12_LGB" createvehicle [_pos select 0, _pos select 1, 30];
LCD OUT
Title: Re: onMapSingleClick Issue
Post by: SniperUK on 21 Jun 2007, 15:27:29
Well that was embarrasing :P i knew it was something simple but i put getpos infront of the array. Thanks LCD.
Title: Re: onMapSingleClick Issue
Post by: LCD on 21 Jun 2007, 17:23:14
:D deres alwayz someting we dont see ;)

LCD OUT