[Need help] Only secondary weapon slot

Here you can find answered ScriptAPI topics.
Forum rules
By using the forum you agree to the following rules.
Post Reply
Hamurlik
Fighter
Fighter
Posts: 49
Joined: Mon Aug 06, 2018 4:11 am

[Need help] Only secondary weapon slot

Post by Hamurlik » Wed Mar 06, 2019 1:30 pm

Okay, for my card you need to do this so that the player could not switch over the slots.

The first option that I came up with is to force the script to press the "secondary weapon slot" button once every 100-500 meliseconds so that it selects secondary weapon slot slot.

The second option is simply to prohibit the weapon slot buttons except an secondary weapon slot

Thanks in advance for any help.
0 x

User avatar
JakSparro98
Superfighter
Superfighter
Posts: 530
Joined: Fri Jul 15, 2016 7:56 pm
Started SFD: PreAlpha 1.0.5
Location: Rome, Italy
Gender:
Age: 25

Post by JakSparro98 » Wed Mar 06, 2019 7:24 pm

Hamurlik wrote:
Wed Mar 06, 2019 1:30 pm
Okay, for my card you need to do this so that the player could not switch over the slots.

The first option that I came up with is to force the script to press the "secondary weapon slot" button once every 100-500 meliseconds so that it selects secondary weapon slot slot.

The second option is simply to prohibit the weapon slot buttons except an secondary weapon slot

Thanks in advance for any help.
Blocking or manipulating user input is NOT something the ScriptAPI can do, what we can do instead is to remove any equipped weapon that doesn't belong to the secondary slot.
0 x

Post Reply