Not Allowing a Weapon to be Holstered?

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
User avatar
MPowell1944
Moderator
Posts: 287
Joined: Thu Jan 09, 2003 7:06 am
Location: Woodstock, GA
Contact:

Not Allowing a Weapon to be Holstered?

Post by MPowell1944 »

How would I go about disabled the holstering of a primary weapon?
Angex
Major
Posts: 293
Joined: Mon Dec 30, 2002 1:23 pm
Contact:

Post by Angex »

Maybe this would work;

local.holsterkey = getboundkey1 "+holster"
local.holsterkey = NULL

OR

local.holsterkey = getboundkey1 "+holster"
local.holsterkey = NIL

But why would you want to do this.
Angex
Major
Posts: 293
Joined: Mon Dec 30, 2002 1:23 pm
Contact:

Post by Angex »

I just realised that won't work.

All it'll do is set local.hostlerkey to a null value, it won't actually affect the holster key.

Unless there's a setboundkey command, I don't think it'll be possible.
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

You can bind any key to any command using stufftext, but I think that's a very sloppy solution. Don't know a better one though :(.
Image
Post Reply