Dear forum users! In compliance with the new European GDPR regulations, we'd just like to inform you that if you have an account, your email address is stored in our database. We do not share your information with third parties, and your email address and password are encrypted for security reasons.

New to the forum? Say hello in this topic! Also make sure to read the 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.
Post Reply
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: 103

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: 1884
Joined: Sun Feb 28, 2016 3:22 pm
Title: Lead programmer
Started SFD: Made it!
Location: Sweden
Gender:
Age: 34

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: 103

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: 1884
Joined: Sun Feb 28, 2016 3:22 pm
Title: Lead programmer
Started SFD: Made it!
Location: Sweden
Gender:
Age: 34

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

Post Reply