Jump to content

Weapon property when attached.


Recommended Posts

Hi i changed my AK-47 accuracy, it works fine, however, whenever i'm attached to something EX: glue to a vehicle, it goes weird, it stops animation like every 3 secs. anyone know how to fix? maybe some properties can do the trick if element is attached, etc etc? if so what property?

 

 

Link to post
Posted (edited)
1 hour ago, Patrick said:

Is it works fine if you don't modify weapon property?

yes. i tried on a vanilla weapon property. it works fine. at some times it works fine, but the one shown above also happens sometimes and once it happens, it never disappears even if players / you reconnect, not only for me but for other players.  I don't have any other script that has weapon properties customized, I restarted server and it works fine now, idk what's causing it. Only solution for me when it happens is to restart the server.

Could it be AK's getting affected by the anim loop stop? idk.. but i have the ID defined minigun on it.

function onWeaponSystemStart()
	for _, skillname in ipairs({"poor", "std", "pro"}) do
		setWeaponProperty( 30, skillname, "accuracy", 1 )
		setWeaponProperty( 38, skillname, "anim_loop_stop", 0.5 )
		setWeaponProperty( 38, skillname, "anim2_loop_stop", 0.5 )
		setWeaponProperty( 38, skillname, "damage", 40)
	end 
end 
addEventHandler("onResourceStart", resourceRoot, onWeaponSystemStart)

 

Edited by Bean666
Link to post
  • Moderators
9 hours ago, Bean666 said:

Could it be AK's getting affected by the anim loop stop? idk.. but i have the ID defined minigun on it.

Maybeee, idk. I tried to reproduce what you did in the video, but I can't. Works fine for me.

  • Like 1
Link to post
42 minutes ago, Patrick said:

Maybeee, idk. I tried to reproduce what you did in the video, but I can't. Works fine for me.

indeed, it's working fine now too, it seldomly happens. idk why, but now it's all good, i'll update if it ever happens again, might've been just an error. thanks!

Link to post
  • Moderators
7 minutes ago, Bean666 said:

indeed, it's working fine now too, it seldomly happens. idk why, but now it's all good, i'll update if it ever happens again, might've been just an error. thanks!

Wierd 🤨

Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...