Liberty Unleashed
Scripting => Script Help => Topic started by: Motley on April 15, 2016, 04:41:57 pm
-
Weapon Functions
*GetWeaponData
*GetWeaponIDFromName
*GetWeaponName
*SetWeaponData
In the wiki the function GetWeaponData brings you to a blank page. Does anyone now if it was removed? Or when the wiki was down pages got deleted?
I want to know what that function is
-
When UAC is enabled, you can add a weapon data file into your server to make sure that players who connect aren't using a custom version.
The function GetWeaponData is used to return values of different weapon stats, like damage, range, ammo in the clip, reload time, etc.
To find values that can be returned (or set with SetWeaponData), there should be a set of constants on the wiki pertaining to each one.
I'm not at my PC but if I remember right, the syntax of the function is:
GetWeaponData( int WeaponID , int DataType )
Sent from my Nexus 4 using Tapatalk
-
You can't change weapon data since 0.1.0.15/0.1.0.16 (bugged)
Note: This function is deprecated. Its use is discouraged as it may be removed in a future update. This function currently does not work. Other method is using 'Weapon.dat
Weapon.dat also doesn't works
-
Wow, didn't realize that.
The last time I ever used it, was a few years ago, and only just to tinker around with it.
Eventually found myself with a rapid fire rocket launcher with infinite ammo :D
-
Wow, didn't realize that.
The last time I ever used it, was a few years ago, and only just to tinker around with it.
Eventually found myself with a rapid fire rocket launcher with infinite ammo :D
Do you remember what LU version you were on?
Also I highly doubt what so ever but do you still have that script to retest?
Just curious. Should be easy to build but you actually happened to get it working before.
#kudos to telling me about the function
-
It was a few years ago so before I the update that broke it I think.
Sent from my Nexus 4 using Tapatalk
-
For a couple of things the 0.14 version was better than the current one. There was correct handling interpretation, in the current one the traction reads a wrong value, anyway cars have problems in going uphill and they are much more drifty, including the Dodo which is harder to take off with; and yeah as rww mentioned the weapon.dat and related functions aren't working at all.
-
Well, I see two options then:
Don't use vehicle or weapon handling ... Or wait for an LU update.
I hope they still plan on having an update.
Sent from my Nexus 4 using Tapatalk
-
Yes weapon.dat does not work, I can load the file in the server and it will count the weapons i left in that file but nothing server side. I have been curious if you have to script in Weapons and run the file.
Cars are broken with drift as Theremin said. I can get really lose in the banshee compared to the story mode edition.
Also have been noticing that the vehicles appear to take the wrong amount of damage, When a Vehicles health hits 200 it will catch on fire and will be ready to explode. which is incorrect. I am pretty sure its LU as I can make the banshee take more damage in story mode.
Honestly We should make a simple list or simple to update wish-list. Player.WeaponAmmo is one of them( It works it just never updates).