Jump to content

[HELP again...] Using MP chat for commands to script


Recommended Posts

Posted (edited)

Ok, so I'm working on a multiplayer script, which soon you will all see (hopefully). My original plan was to implement individual player settings and allow a player to change their settings thru the F10 menu.

 

The basic functionality of the script is working, and I'm in the process of adding the extra features to complete it. But, when I come to adding the F10 menu's (to change only 2 variables), it dawned on me, that they are only available for groups and not individual players, and with the recent change of having more then 1 human player in a group, will not work how I want it to.

 

I ultimately need the ability to pull the clients playerName when they issue the command.

 

SL mod uses the MP chat system for clients to interact with, which is the only way (that I can see, feel free to point me elsewhere), to get around my problem. Can anyone point me to a library or an explanation on how to implement pulling commands from the chat window? All I need is for a client to be able to type something like

-set OPTION VALUE

with both arguments being strings.

 

At the end of the day, worst case scenario will be that the mission designer gets to decide on these 2 settings rather then the individual clients.

 

EDIT: I should say that I've seen this http://forums.eagle.ru/showthread.php?t=70782 but being 5 years old, I haven't looked at it yet as a lot has changed. If someone can say its still working I'll take a look.

 

Edit2: Decided to go with having group settings rather then player settings. But if someone could still point me in the direction I'm asking would be great.

 

Thanks in advance!

Steggles

Edited by Steggles

-16AGR- 16th Air Guards Regiment is always looking for pilots - http://www.16agr.com

 

EWRS - Early Warning Radar Script

 

Specs:

 

 

Gigabyte Sniper Z5-S

Intel i5-4670k 3.4GHz OC'd 3.9GHz w/ Thermaltake 120mm Water 3.0 Pro Liquid CPU Cooler

16GB RAM

Gigabyte GTX 1080

TM Hotas Warthog: SN: 06976

Saitek Pro Flight Combat Rudder Pedals

TrackIR5 with TrackClipPro & Oculus Rift

2x 28" 4k UHD Monitors (3840x2160 each) + 1280x1024

 

 

  • Recently Browsing   0 members

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