devildead622 Posted February 17, 2013 Posted February 17, 2013 I wonder if there is any way/resource to the sniper can see other player further, beyond their normal range.
Shazzimal Posted February 17, 2013 Posted February 17, 2013 I think this is impossible. My resources: Didn't make one yet. Momently in build!
devildead622 Posted February 17, 2013 Author Posted February 17, 2013 let's see if someone can give me sure of it is impossible
Shazzimal Posted February 17, 2013 Posted February 17, 2013 Ok, i am not advanced with scriptin, i started learning around 3-4 days ago. I am going to search on the wiki, to your problem. My resources: Didn't make one yet. Momently in build!
50p Posted February 17, 2013 Posted February 17, 2013 You can try this: https://wiki.multitheftauto.com/wiki/SetWeaponProperty but if that's not what you're looking for then I'm sure it's not possible. - MTA Script Editor - Ask your scripting questions properly, please. - 50p's public resources - Meta.xml - what is it for? How is it possible LOL
Shazzimal Posted February 17, 2013 Posted February 17, 2013 That's accactly what i found yet, i can help you if you need. My resources: Didn't make one yet. Momently in build!
devildead622 Posted February 17, 2013 Author Posted February 17, 2013 I am Brazilian, it is difficult to understand the wiki after translating. You can Diser if any of these functions alters the scope of the gun?
Shazzimal Posted February 17, 2013 Posted February 17, 2013 you can't change the scope_range. You can only change the gun_range. My resources: Didn't make one yet. Momently in build!
devildead622 Posted February 17, 2013 Author Posted February 17, 2013 and this would cause could do with Sniper farther?
Shazzimal Posted February 17, 2013 Posted February 17, 2013 Do you mean the distance a sniper could sight, or could shoot? My resources: Didn't make one yet. Momently in build!
Shazzimal Posted February 17, 2013 Posted February 17, 2013 So you want, that a sniper can shoot farther. My resources: Didn't make one yet. Momently in build!
Shazzimal Posted February 17, 2013 Posted February 17, 2013 You must yous this then: step 1: server-side addCommandHandler("getSniper", function() local range = getWeaponProperty(34,"poor","weapon_range") outputChatBox("Range from Sniper is:"..tostring(range)) end) meta.xml <meta> <script src="server.lua" type="server"/> </meta> Just add this resource to the server, type /getSniper on chatbox and send the result to me. My resources: Didn't make one yet. Momently in build!
Moderators IIYAMA Posted February 17, 2013 Moderators Posted February 17, 2013 addEventHandler( "onResourceStart", resourceRoot, function ( ) setWeaponProperty(34, "pro", "weapon_range", 300) setWeaponProperty(34, "pro", "target_range", 300) setWeaponProperty(34, "poor", "weapon_range", 300) setWeaponProperty(34, "poor", "target_range", 300) setWeaponProperty(34, "std", "weapon_range", 300) setWeaponProperty(34, "std", "target_range", 300) end) .....................................................................................................................................................................................................................................................................................................................................................................,,,,, Note: sniper is already "300" max. Do you want to improve your Lua programming skills and make less mistakes? Start with Lua Language Server! Useful functions 3x Spoiler checkPassiveTimer getScreenStartPositionFromBox getPedGender Tutorials 4x Spoiler Scaling DX Events Attach an addEventHandler on a group of elements Debugging
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now