Midnight Posted May 27, 2013 Share Posted May 27, 2013 In the process of making a mission where I need to give score to huyes for completing tasks. These aircraft will not engage in combat and will not get score for kills. How can this be done? Link to comment Share on other sites More sharing options...
Ripcord Posted May 27, 2013 Share Posted May 27, 2013 Just use triggers and award points as condition of each trigger event. [sIGPIC][/sIGPIC] Link to comment Share on other sites More sharing options...
Midnight Posted May 27, 2013 Author Share Posted May 27, 2013 Thanks, will have a look. Link to comment Share on other sites More sharing options...
RagnarDa Posted May 27, 2013 Share Posted May 27, 2013 No way to do this with script only? DCS AJS37 HACKERMAN There will always be bugs. If everything is a priority nothing is. Link to comment Share on other sites More sharing options...
Midnight Posted May 27, 2013 Author Share Posted May 27, 2013 I'm with you RagnarDa, do not see any indication that mission editor can do this. "Just use triggers and award points as condition of each trigger event." Not sure what you imply here Ripcord, don't see any action to do this. Link to comment Share on other sites More sharing options...
Midnight Posted May 28, 2013 Author Share Posted May 28, 2013 Things are getting worse for me now! The more I fiddled with the script, the more errors came popping up. Anything wrong with this? ****************************** mist.flagFunc.units_LOS{ unitset1 = {'991'}, altoffset1 = 2, unitset2 = {'Player', 'Player2', 'player3}, altoffset2 = 0, flag = 3, stopflag = 4, radius = 3000 } ******************** Above links to this ************************************* local unit = Unit.getByName('Player', 'Player2', 'Player3') local pos = unit:getPosition().p local distance = math.sqrt((pos.x-PilotPosition.x)*(pos.x-PilotPosition.x)+(pos.z-PilotPosition.z)*(pos.z-PilotPosition.z)) if distance < 50 then return true else return false end Link to comment Share on other sites More sharing options...
Puddlemonkey Posted May 28, 2013 Share Posted May 28, 2013 I think a couple of errors are that you should have brackets around all parameters and are missing an inverted comma after player3. I prefer to use double inverted commas " as they are more obvious to see. And should your player3 have a lower case p? mist.flagFunc.units_LOS({ unitset1 = {'991'}, altoffset1 = 2, unitset2 = {'Player', 'Player2', 'player3'}, altoffset2 = 0, flag = 3, stopflag = 4, radius = 3000 }) Link to comment Share on other sites More sharing options...
Recommended Posts