Panzertard Posted July 27, 2010 Posted July 27, 2010 Is the kick action scriptable? When a notification is posted that a player did a taxiway takeoff it'd be nice if a script kicked the player. ServMan might have clues on how to do this. No, sorry, not possible. The mind is like a parachute. It only works when it's open | The important thing is not to stop questioning
Case Posted July 27, 2010 Posted July 27, 2010 Is the kick action scriptable? When a notification is posted that a player did a taxiway takeoff it'd be nice if a script kicked the player. ServMan might have clues on how to do this.Yes, it is, with net.kick you can kick a player from LUA. However, the problem is getting the information needed from the triggers in the game to the LUA code outside the game. The only way LUA gets ingame information in FC2/DCS are the in game hooks like on_eject(), on_crash() etc. To me it seems that none of these can be turned into a foolproof way of getting the necessary information there. My present suggestion would be to stay with the explode unit trigger action, but push ED to implement functionality to the game to have triggers talk to LUA and vice versa. There are only 10 types of people in the world: Those who understand binary, and those who don't.
HiJack Posted July 27, 2010 Author Posted July 27, 2010 I've updated with the screenshot of settings to allow taxiway takeoff if the airfield is under attack. Regarding ServMan, is there a chance that ServMan can react on the fact (from LOG) that the player aircraft is taken out by self-explosion? (HJ)
Panzertard Posted July 27, 2010 Posted July 27, 2010 (edited) Yes, it is, with net.kick you can kick a player from LUA. However, the problem is getting the information needed from the triggers in the game to the LUA code outside the game. The only way LUA gets ingame information in FC2/DCS are the in game hooks like on_eject(), on_crash() etc. To me it seems that none of these can be turned into a foolproof way of getting the necessary information there. My present suggestion would be to stay with the explode unit trigger action, but push ED to implement functionality to the game to have triggers talk to LUA and vice versa. Well - we just have to wait and see what future versions of DCS brings us. ;) I've updated with the screenshot of settings to allow taxiway takeoff if the airfield is under attack. Regarding ServMan, is there a chance that ServMan can react on the fact (from LOG) that the player aircraft is taken out by self-explosion? (HJ) "Self-explosion" = intentional or not? Servman cant differ between the different intentions of the player. Edited July 27, 2010 by Panzertard The mind is like a parachute. It only works when it's open | The important thing is not to stop questioning
HiJack Posted July 27, 2010 Author Posted July 27, 2010 OK, then we just have to wait and see then ;)
Grimes Posted July 27, 2010 Posted July 27, 2010 Why not make a trigger that checks if an aircraft is in a zone and if flag x is true and if their speed is above 70km. The zone encompasses the entire airbase. The flag gets cleared when the aircraft enters the runway from a taxiway The flag becomes true if they die or speed becomes 0 after its gotten up to 300km/h So if their speed is above 70km, a triggered audio messages screams at them to slow the F down... along with a text message stating the tail number of said aircraft... that way everyone knows that Player X must be in some kind of hurry. Also put a giant minefield in the grass. That'll teach em! ...or players could just care about or at least respect airbase procedures to begin with and this really wouldn't be a problem. Not sure why it isn't already. Could be lack of situational information (players don't know if they have to scramble or not), could be ignorance, could be how they choose to play. At any rate... things arn't organized The right man in the wrong place makes all the difference in the world. Current Projects: Grayflag Server, Scripting Wiki Useful Links: Mission Scripting Tools MIST-(GitHub) MIST-(Thread) SLMOD, Wiki wishlist, Mission Editing Wiki!, Mission Building Forum
Recommended Posts