wizzywig 0 Posted March 17, 2004 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
havocsquad 0 Posted March 17, 2004 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... Â Â ) Share this post Link to post Share on other sites
wizzywig 0 Posted March 17, 2004 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
havocsquad 0 Posted March 17, 2004 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
wizzywig 0 Posted March 17, 2004 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
havocsquad 0 Posted March 17, 2004 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
wizzywig 0 Posted March 17, 2004 add me to your contact list Share this post Link to post Share on other sites
wizzywig 0 Posted March 19, 2004 ok still not solved any help from some one that is over 10 would be most accepted thanks Share this post Link to post Share on other sites