Jump to content

how to activate a flag when a specific MSG is entered into MFCD ?


Recommended Posts

Posted

Hi guys

for a MP mission, i d like to detect the string is entered as Message into the MFCD.

for ex, go to msg page into R_MFCD, and type : move1, press send

if move1 is entered, then Set Flag1.

if move2 is entered, then Set Flag2.

i didn t find into the Cockpit_arguments.doc what argument or command is needed to be check.

 

thanks for help.:helpsmilie:

Posted

Humm.

 

I would imagine the text messages get passed through lua at some point as they can be sent between players in a multiplayer environment and you receive formatted messages from JTAC.

 

As an alternative solution you could use Speeds scripts to use chat text messages to accomplish the same result or the radio item triggers for SP/the host.

The right man in the wrong place makes all the difference in the world.

Current Projects:  Grayflag ServerScripting Wiki

Useful Links: Mission Scripting Tools MIST-(GitHub) MIST-(Thread)

 SLMOD, Wiki wishlist, Mission Editing Wiki!, Mission Building Forum

Posted
Humm.

 

I would imagine the text messages get passed through lua at some point as they can be sent between players in a multiplayer environment and you receive formatted messages from JTAC.

 

As an alternative solution you could use Speeds scripts to use chat text messages to accomplish the same result or the radio item triggers for SP/the host.

 

If it is sent through Lua, I've never seen where or how. It's quite likely that it never goes through Lua.

 

But yea, if you want the game to respond to messages sent by clients, then you have to use slmod- see my signature.

Intelligent discourse can only begin with the honest admission of your own fallibility.

Member of the Virtual Tactical Air Group: http://vtacticalairgroup.com/

Lua scripts and mods:

MIssion Scripting Tools (Mist): http://forums.eagle.ru/showthread.php?t=98616

Slmod version 7.0 for DCS: World: http://forums.eagle.ru/showthread.php?t=80979

Now includes remote server administration tools for kicking, banning, loading missions, etc.

Posted (edited)
Hmm, I wonder how it gets from client to client then.

 

Probably through whatever variant of C they programmed the majority of the game in. Lua is just a C API used so that ED's military users can make custom Lua edits that add in whatever classified performance parameters or behavior that they want to simulate.

 

I could still be wrong though, maybe the lua functions to send messages are buried in here somewhere. I should probably look very carefully through the JTAC code, as you mention. But I actually HAVE looked through the JTAC code, a few times. I know where the "5 digit MGRS" problem is created, and how to fix it, for example. I also remember there being some kind of 9LineRemarks function or variable somewhere. But that doesn't mean the function to actually send and receive messages exists in Lua.

Edited by Speed

Intelligent discourse can only begin with the honest admission of your own fallibility.

Member of the Virtual Tactical Air Group: http://vtacticalairgroup.com/

Lua scripts and mods:

MIssion Scripting Tools (Mist): http://forums.eagle.ru/showthread.php?t=98616

Slmod version 7.0 for DCS: World: http://forums.eagle.ru/showthread.php?t=80979

Now includes remote server administration tools for kicking, banning, loading missions, etc.

Posted

I ve tried to used the slmod.... and it works fine :p

but, i have a question :

is it possible to know if it s a Blue guy or a Red guy that entered a message ?

because i want to be sure people who move blue units are into blue team :D

for now, everybody can move every units.

Posted
I ve tried to used the slmod.... and it works fine :p

but, i have a question :

is it possible to know if it s a Blue guy or a Red guy that entered a message ?

because i want to be sure people who move blue units are into blue team :D

for now, everybody can move every units.

 

No, but coalition-specific parallel tasking and chat command functions are planned for a future version. I anticipated that someone would want them, but because force-on-force missions are so rare, I hadn't implemented them yet. If you want them, I could in fact do them sooner rather than later. I gotta get off my butt and finish the new events system first though. I haven't really worked on slmod for like 2 or 3 weeks. I needed a break from it.

Intelligent discourse can only begin with the honest admission of your own fallibility.

Member of the Virtual Tactical Air Group: http://vtacticalairgroup.com/

Lua scripts and mods:

MIssion Scripting Tools (Mist): http://forums.eagle.ru/showthread.php?t=98616

Slmod version 7.0 for DCS: World: http://forums.eagle.ru/showthread.php?t=80979

Now includes remote server administration tools for kicking, banning, loading missions, etc.

Posted

it s cool if it s already on your plan :p

for now, i just want to do a ''proof of concept'' of a force-on-force mission. Many things work fine.

so, no pressure, add it when you want ;)

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...