Jump to content
🛡️FORUMS ARE IN READ-ONLY MODE Read more... ×
Sign in to follow this  
wizzywig

Mp tomahawk

Recommended Posts

Hi me again im have a bit of a problem with mp useing our tomahawk the problem is:

the tomahwk fires and creats its self like it should but the cam created ai will not get in tomahawk it works perfect in single player but i would like it to work in both please if any one can help let me know thanks

how its set up is with a marker called launch

and a LST

NAME = LST1

init = LST=group this

ok this is part of our script

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">_leader = LST1

_group = LST

_leaderpos = getpos _leader

_posX = _leaderpos select 0

_posY = _leaderpos select 1

_posZ = _leaderpos select 2

_rand = (random 20)

_leaderX = _posX+_rand

_leaderY = _posY+_rand

_posfinal = [_leaderX,_leaderY,_posZ]

"SoldierWPilot" createunit [_posfinal,_group,"tmhwkpilot = this",1,"Private"]

~0.001

;END OF MAKE AI

_craft = "Tomahawkwiz" createVehicle getMarkerPos "Launch"

_craft setPos [(getPos _craft select 0),(getPos _craft select 1),(getPos _craft select 2)+0]

~0.001

tmhwkpilot assignAsDriver _craft

tmhwkpilot moveInDriver _craft

Share this post


Link to post
Share on other sites

Why do you have "AssignasDriver" in the code?

All you should ever need to use is the "moveindriver" command.

As for the multiplayer aspect, I can't answer that.  (Sorry...   sad_o.gif  )

Share this post


Link to post
Share on other sites

just remove that line and problem is still there ok i know its not with the tomahawk spawn as the tomahawk still fires and the rest of the scripts run its just it wont follow the waypoints because there is no pilot any help much needed

Share this post


Link to post
Share on other sites

Is the tomahawk an actual aircraft object that can hold people in it or not?  If it is just a static object or a ground based vehicle object, you won't get anything to work.

The object must allow an AI driver to control it, check your Cpp settings and your Tomahawk object design.

I'm fairly certain it's about 95% got to do with your tomahawk addon and the object properties that you gave it.

Try launching an A-10 or Su-25 out of it.  (If possible)  Then use the scripts and see if the aircraft does it's job.  If it does work (the flight part), then you've got to rework your tomahawk.

Share this post


Link to post
Share on other sites

ok ill give that a try but i know the tomahawk works coz as i said all is perfect in single player all works all is good but when in mp the AI wont board the tomahawk

Share this post


Link to post
Share on other sites

Don't go by my advice alone, try to review your code some more. It might be an issue of local versus global variables.

Is there any opportunity that I could privately beta test your addon? I know the rules, no showing, releasing, or unauthorized distribution or sharing of the addons period.

Anyways, get back to me on that when you can...

Share this post


Link to post
Share on other sites

ok still not solved any help from some one that is over 10 would be most accepted

thanks ghostface.gif

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  

×