Scripts / Automatically show last used weapon

Author
Message
Kalle801
10
Years of Service
User Offline
Joined: 8th Jan 2014
Location: Germany
Posted: 15th Jun 2016 01:42 Edited at: 15th Jun 2016 10:38
Hello is it possible to Automatically show the last used weapon after using this command? : SetPlayerWeapons(1)
Cause when i disable weapons they are hidden and dont show up again after they are enabled again.
3com
10
Years of Service
User Offline
Joined: 18th May 2014
Location: Catalonia
Posted: 15th Jun 2016 17:29
I've wrote this script for testing purpose:



It looks like when use it, GG pass 0 as parameter, so hide weapon.
You need use middle mouse button, or use the numbers (1, 2, 3, and so on), to show the weapon in hand.

3com


Laptop: Lenovo - Intel(R) Celeron(R) CPU 1005M @ 1.90GHz

OS: Windows 10 (64) - Ram: 4 gb - Hd: 283 gb - Video card: Intel(R) HD Graphics

PM
Kalle801
10
Years of Service
User Offline
Joined: 8th Jan 2014
Location: Germany
Posted: 15th Jun 2016 17:55 Edited at: 15th Jun 2016 17:55
my script works similar to yours.
You wrote: You need use middle mouse button, or use the numbers (1, 2, 3, and so on), to show the weapon in hand.

But this is exactly what it actually does. What i want is: that the Weapon comes up again without any need of a pressed button or something
3com
10
Years of Service
User Offline
Joined: 18th May 2014
Location: Catalonia
Posted: 15th Jun 2016 18:17
Ya! you are right, do not know why it does, perhaps somebody want test it, and post their results for comparison.

3com
Laptop: Lenovo - Intel(R) Celeron(R) CPU 1005M @ 1.90GHz

OS: Windows 10 (64) - Ram: 4 gb - Hd: 283 gb - Video card: Intel(R) HD Graphics

PM
smallg
Community Leader
19
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 15th Jun 2016 18:37
yh you can (see attachment)
lua guide for GG
https://steamcommunity.com/sharedfiles/filedetails/?id=398177770
windows 10
i5 @4ghz, 8gb ram, AMD R9 200 series , directx 11

Attachments

Login to view attachments
3com
10
Years of Service
User Offline
Joined: 18th May 2014
Location: Catalonia
Posted: 15th Jun 2016 18:50
ChangePlayerWeapon()
I've misseed this command.

3com

Laptop: Lenovo - Intel(R) Celeron(R) CPU 1005M @ 1.90GHz

OS: Windows 10 (64) - Ram: 4 gb - Hd: 283 gb - Video card: Intel(R) HD Graphics

PM
Kalle801
10
Years of Service
User Offline
Joined: 8th Jan 2014
Location: Germany
Posted: 15th Jun 2016 19:21
smallg already did it lol.

Damn he is the best ^^

Login to post a reply

Server time is: 2024-12-22 18:30:47
Your offset time is: 2024-12-22 18:30:47