![]() |
selectedweapon
Does selected weapon weapon-id; still work in GS2?
If so - how? I can't get it to work. If not - what's the GS2 equilivant? |
This should be in the gscript2 section.
The weapon the player currently has selected is assigned to the 'player.weapon' object, I believe. |
I wasn't sure if it was to go in the GS2 section or not, since it's also sort of in relation to GS1.
So it'll be player.weapon = "WEAPON";? Does it have to be serverside? |
Uh, I think player.weapon is readonly, not sure though.
Also, I said it's an object, not a string. ie: player.weapon.name, player.weapon.image, etc. |
Quote:
|
Then how am I meant to change the players current weapon?
|
I belive you cant do that with script.
|
Well you were able to in GS1, so why remove that capability in GS2?
|
selectedweapon will still work...
|
Quote:
|
Quote:
PHP Code:
I tried PHP Code:
Any suggestions? Like PHP Code:
|
You can do:
PHP Code:
|
PHP Code:
|
Quote:
Have you tried doing: player.weapon = findWeapon("WeaponName"); ? |
I never bothered till now, and it pretty much broke it. Anymore suggestions?
|
Quote:
|
Lol is this a serverside script or clientside? Because clientside it wouldnt work..
|
Quote:
Quote:
|
| All times are GMT +2. The time now is 04:34 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.