Jump to content

Recommended Posts

Posted (edited)

Hi All,

 

I've been looking somewhat at SLMod's code to try and figure out how to use chat commands to trigger different things - trigger a script file or a function.

 

For example -

/help - command list.

/addMatch Xcom,Greg (Returns a match number and runs a function)

/removeMatch <match number> (runs a function)

/loadfile <filename> (loads an external lua file into the mission)

/saveMission <filename> (saves the mission state into an external file to be used with Witchcraft or Online Mission Planner).

 

etc..

I would want to build something that will work with these commands and others, but I need the know how to work with the commands.

 

If someone has already researched this or understands how to work with the SLMod part that utilizes the chat commands to implement specifically that part without adding all the SLMod, it would be great if you could share or at least explain how to do it, it would mean big time saving.

 

Thanks,

Xcom

Edited by xcom
  • Recently Browsing   0 members

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