Since the animations update a while ago garry changed how animations are determined in lua.
I have very very little lua experience but I have a swep that used the walking animation, you know, no weapons and arms at the side just walking animation but now it doesn't work, it looks like your holding a invisible gun.
It was the talk swep, press r and you would say a line ect, would anyone know how I would easily just change the animation so it looks like I have no weapon equipt?
I mean..like what the actual animation...code would be?
[code]SWEP.Author = "-[SB]- Spy"
SWEP.Instructions = "Left click to use the selected talking mode. Right click to select a talking mode. Reload to say something without having to be near a player."
SWEP.Contact = ""
SWEP.Purpose = "Create conversations the EASY way."
SWEP.ViewModelFOV = 62
SWEP.ViewModelFlip = false
SWEP.ViewModel = ""
SWEP.WorldModel = ""
SWEP.HoldType = "normal"
SWEP.Spawnable = false
SWEP.AdminSpawnable = true
SWEP.Primary.ClipSize = -1
SWEP.Primary.DefaultClip = 0
SWEP.Primary.Automatic = false
SWEP.Primary.Ammo = ""
SWEP.Secondary.ClipSize = -1
SWEP.Secondary.DefaultClip = 0
SWEP.Secondary.Automatic = false
SWEP.Secondary.Ammo = ""[/code]
Like out of this? I added SWEP.HoldType = "normal" from looking at another SWEP that might of used it but it didn't work.
Add this to your code
[lua]
function SWEP.Initialize()
self.SetWeaponHoldType(self.HoldType)
end
[/lua]
Errr I cant see what you've put, its not visible? :S
Honestly what do I add?
Sorry, you need to Log In to post a reply to this thread.