Nikki Mond Posted December 2, 2007 Share Posted December 2, 2007 OK I'm new at this. I created a mission, sort of. Followed the WMV tutorial. Although enemy infantry react on their own AI. tanks just sit there. How do I atleast get a static tank to shoot at anything that moves while it is static. thanks Link to comment Share on other sites More sharing options...
Stoppelhopser Posted December 2, 2007 Share Posted December 2, 2007 I'm also dabbling with the editor on a basic level. I have placed tanks in Army2 like I did infantry and they shoot and even drive forward a little for a better view, then return to their spawnpoint, kind of defending it. No trigger yet. Have you added "backpacks" to tanks? They contain the ammo load and at first I left them off because I did not think tanks need "backpacks" and they wont shoot. Also give them crews. I forgot about that too in my first mission and cursed the editor . Link to comment Share on other sites More sharing options...
SlapHappy Posted December 2, 2007 Share Posted December 2, 2007 Firing routines are not scripted....they are inherent to the tactical AI which is programmed into the game engine. Only movement routines are scriptable. Link to comment Share on other sites More sharing options...
Nikki Mond Posted December 2, 2007 Author Share Posted December 2, 2007 Thanks, Well duh yes it was the backpacks afterall. Can someone provide me a hint of how to apply a script to a unit. For example to move a unit from Rectange A to Rectangle B. Again thanks Link to comment Share on other sites More sharing options...
SlapHappy Posted December 2, 2007 Share Posted December 2, 2007 Here are three examples from the mission.doc file: </font><blockquote>code:</font><hr /><pre style="font-size:x-small; font-family: monospace;">RunCommand ( UNIT , 123 , ATTACK , RECT , “Rect” ) // Unit 123 attacks the rectangular named Rect RunCommand ( ARMY , 2 , STORM , UNIT , 15 ) // Army 2 assaults the unit with the identification number 15 RunCommand ( GROUP , “Group” , MOVE , ARRAY , arWaypoints ) // Group “Group” moves its units along the arWaypoints path </pre> Link to comment Share on other sites More sharing options...
Nikki Mond Posted December 3, 2007 Author Share Posted December 3, 2007 Well I've managed the basic movements. But found out I can't send a unit from one rec to another in sequence. He heads for the last location and ignores the first. I suppose that's where arrays come in? Also HT Attack was a good demo. Some readme notes in the code would be welcome but its pretty straight forward. thanks Link to comment Share on other sites More sharing options...
SlapHappy Posted December 3, 2007 Share Posted December 3, 2007 You can use "points" instead, but that's basically the same as an array, yes. When you move units into a "rect" according to the mission.doc file, the unit moved to a random location inside the rect, so that is a much less refined way to move units..... Link to comment Share on other sites More sharing options...
Nikki Mond Posted December 3, 2007 Author Share Posted December 3, 2007 Just one more thing please, then I'll put this to rest. How do you define an array of set points? Again just doing a bunch of seperate moves to points don't work as the unit notes only the last point and B-lines for it. thanks Link to comment Share on other sites More sharing options...
SlapHappy Posted December 3, 2007 Share Posted December 3, 2007 It needs to be a logical loop for it to work properly. Open the mission "Last Chance" in the editor for a couple of examples of defining an array for a path. It's in the Single Missions folder. Link to comment Share on other sites More sharing options...
Recommended Posts