This forum is locked and will eventually go offline. If you have feedback to share you can find us in our Discord channel "MythoLogic Interactive" https://discord.gg/nECKnbT7gk

Forum rules

a script to be able to create/ change a players control settings

Give us your input on how we may improve the ScriptAPI in the game in future versions.
Forum rules
By using the forum you agree to the following rules.
Locked
jamisco
Superfighter
Superfighter
Posts: 67
Joined: Sun Nov 06, 2016 11:34 pm
Title: Da God
SFD Account: Jamisco
SFD Alias: Jamisco
Started SFD: either late 2015 or early 2016
Location: Somewhere in the east of the United states
Gender:
Age: 105

a script to be able to create/ change a players control settings

Post by jamisco » Sun Feb 26, 2017 6:00 am

create or change .... no preference really fyi

what i mean by control settings are,for example, for me my controls are, to shoot i press J, to block i press L, to kick i press K and i move with wasd keys... now, i checked the script api, i couldn't seem to find method or something that allowed me obtain information on a players control settings... so any one of you genius scripters out there got a genius way to be able to setup custom controls? ... I'm thinking i could loop console.ReadKey()... buttttt, I'm very skeptical... and i feel like its far more complicated than that
0 x
Is it better to be feared or respected... please, is it too much to ask for both?

User avatar
Gurt
Lead Programmer
Lead Programmer
Posts: 1887
Joined: Sun Feb 28, 2016 3:22 pm
Title: Lead programmer
Started SFD: Made it!
Location: Sweden
Gender:
Age: 36

Post by Gurt » Sun Feb 26, 2017 9:38 am

You can not read or change a specific user's control scheme.
0 x
Gurt

jamisco
Superfighter
Superfighter
Posts: 67
Joined: Sun Nov 06, 2016 11:34 pm
Title: Da God
SFD Account: Jamisco
SFD Alias: Jamisco
Started SFD: either late 2015 or early 2016
Location: Somewhere in the east of the United states
Gender:
Age: 105

Post by jamisco » Sun Feb 26, 2017 8:49 pm

can we then influence it? add extra controls? for example i can make it so that when lets say i press the key X, i can do whatever event i coded in my script
0 x
Is it better to be feared or respected... please, is it too much to ask for both?

User avatar
Gurt
Lead Programmer
Lead Programmer
Posts: 1887
Joined: Sun Feb 28, 2016 3:22 pm
Title: Lead programmer
Started SFD: Made it!
Location: Sweden
Gender:
Age: 36

Post by Gurt » Sun Feb 26, 2017 9:36 pm

Perhaps one day you will be able to read pressed keys (like key GRAB or key JUMP) in the ScriptAPI but not today.
1 x
Gurt

Locked