Hi Avon!
Glad to have come across this post as this is sort-of ******exactly what im doing.
First of all <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">dotarget/dofire commands[/QUOTE] never work ******or at least not for planes as they go to quick and they usualy do what they want anyway. ***
![]()
<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">
_apos = [getpos soldier select 0,(getpos soldier select 1) - 1100,(getpos soldier select 2)+900]; this just sets the plane to spawn behind soldier
vpilot = []
"SoldierWPilot" createUnit [getmarkerPos "start",GROUPp51,"vpilot=this",1&# 93;
_p51 = "ECA_P51Dstrike" createVehicle _apos
;WW2EC_D3A1
_p51 setpos [getpos _p51 select 0, getpos _p51 select 1, (getpos_p51 select 2)+900];sets plane height to make sure its there
[_p51] exec "marker.sqs"; this just shows the planes position on the map
_p51 setdir (getdir soldier)
_p51 engineon true
vpilot moveInDriver _p51
_p51 setpos _apos
~1
GROUPp51 setSpeedMode "Normal"
_p51 domove (getpos soldier)
_p51 setBehaviour "Combat"
_p51 setCombatMode "RED"
_apos2 = [getpos soldier select 0,(getpos soldier select 1) + 100,getpos soldier select 2]
~5
_target = "LesIAETA" createVehicle _apos2;see below
_p51 dotarget _target
_p51 dofire _target
exit[/QUOTE]
Being playing around with your script. And this is what i have. Its a script that i hope to use with the onmapsingleclick but i need help. For now its set up for testing
Ok so its very much a carbon copy ******(i would ask for permission before releaseing
***)
Now LesIAETA is an East Armoured target, which spaws invisable, which makes the plane appear to the player, to be attacking a defined spot. (so to indicate a targeted strike by the plane)
Have you thought of doing something like this? where the player clicks his target on the map and the plane then attacks? instead of those waypoints.
Does anyone know of onmapsingleclick tutorials? i need to know how to get the position of the click and create a marker/icon.
Thanks
TF
edit: Forgot to say BTW this script works %110 of the time for divebombers
HOME
***exactly what im doing.
***)
Reply With Quote






