aook002 0 Posted July 17, 2004 Hi - i'm just wondering on how I would find out the position of a vehicle - with it showing up in a hint, triggered by a radio command. Im guessing but would it be something like this? I'm trying to find out the position of a helicopter called UH60. <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">hint "Getpos UH60" I know that's not right - but i hope it may give you on what lines I am thinking on. Thanks in advance Aook Share this post Link to post Share on other sites
Guest [B.B.S.] T_D Posted July 17, 2004 Try this: <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">hint format["%1",getpos UH60] Share this post Link to post Share on other sites
aook002 0 Posted July 17, 2004 Yeah that works...BUT is there any way to get that reading in an answer such as "Eb49" like a grid reference. Thanks for reply T_D Aook Share this post Link to post Share on other sites
raedor 8 Posted July 17, 2004 you mean something like this (dkmm_sosradio.sqs):<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">? side player != side _this : _this globalchat "...xzy..hrmzt...threm..prp......zeth....", exit _posx = (getpos _this select 0)/128 ?_posx < 60 : goto "quick1" ?_posx > 90 : _1 = "J", goto "pos2" ?_posx > 80 : _1 = "I", goto "pos2" ?_posx > 70 : _1 = "H", goto "pos2" ?_posx > 60 : _1 = "G", goto "pos2" #quick1 ?_posx > 50 : _1 = "F", goto "pos2" ?_posx > 40 : _1 = "E", goto "pos2" ?_posx > 30 : _1 = "D", goto "pos2" ?_posx > 20 : _1 = "C", goto "pos2" ?_posx > 10 : _1 = "B", goto "pos2" _1 = "A" #pos2 _posx = _posx Mod 10 ?_posx < 6 : goto "quick2" ?_posx > 9 : _2 = "j", goto "pos3" ?_posx > 8 : _2 = "i", goto "pos3" ?_posx > 7 : _2 = "h", goto "pos3" ?_posx > 6 : _2 = "g", goto "pos3" #quick2 ?_posx > 5 : _2 = "f", goto "pos3" ?_posx > 4 : _2 = "e", goto "pos3" ?_posx > 3 : _2 = "d", goto "pos3" ?_posx > 2 : _2 = "c", goto "pos3" ?_posx > 1 : _2 = "b", goto "pos3" _2 = "a" #pos3 _posx = _1 + _2 _posy = (getpos _this select 1)/128 ?_posy < 50 : goto "quick3" ?_posy > 90 : _1 = "0", goto "pos4" ?_posy > 80 : _1 = "1", goto "pos4" ?_posy > 70 : _1 = "2", goto "pos4" ?_posy > 60 : _1 = "3", goto "pos4" #quick3 ?_posy > 50 : _1 = "4", goto "pos4" ?_posy > 40 : _1 = "5", goto "pos4" ?_posy > 30 : _1 = "6", goto "pos4" ?_posy > 20 : _1 = "7", goto "pos4" ?_posy > 10 : _1 = "8", goto "pos4" _1 = "9" #pos4 _posy = _posy Mod 10 ?_posy < 6 : goto "quick4" ?_posy > 9 : _2 = "0", goto "next" ?_posy > 8 : _2 = "1", goto "next" ?_posy > 7 : _2 = "2", goto "next" ?_posy > 6 : _2 = "3", goto "next" #quick4 ?_posy > 5 : _2 = "4", goto "next" ?_posy > 4 : _2 = "5", goto "next" ?_posy > 3 : _2 = "6", goto "next" ?_posy > 2 : _2 = "7", goto "next" ?_posy > 1 : _2 = "8", goto "next" _2 = "9" #next _posy = _1 + _2 ? (canstand _this && getdammage _this < 0.7): _status = "", goto "radio" _status = " Bring medics!" #radio _i = Random 5.99 _i = _i - (_i Mod 1) ? _i == 0 : _mes = "Redbird calling papa bear, need an extraction as fast as possible, Position near %1 %2.%3" ? _i == 1 : _mes = "Redbird dead, repeat, Redbird dead, chicks still alive at %1 %2 and need a transport to base.%3" ? _i == 2 : _mes = "Mayday, I need an evac. Position around %1 %2.%3" ? _i == 3 : _mes = "Got shot down near %1 %2, chopper is totalled, pick us up as soon as possible.%3" ? _i == 4 : _mes = "Crashlanded near %1 %2.%3" ? _i == 5 : _mes = "Chopper down, Chopper down, be aware of possible AA fire on grid %1 %2, need a pickup asap.%3" _this sidechat format [_mes,_posx, _posy, _status] exitopen it with <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">object exec "dkmm_sosradio.sqs" © by Rastavovich of DKM Mod Share this post Link to post Share on other sites
aook002 0 Posted July 18, 2004 Cheers raedor - i'll try that when i get back home Aook Share this post Link to post Share on other sites
aook002 0 Posted July 18, 2004 That's great everyone - thanks. I'll be able to get it working now. Aook Share this post Link to post Share on other sites