kewizzle Posted February 16, 2018 Share Posted February 16, 2018 Would it be possible to kill all zombies within a certain distance of you? if so how would i go about it? coding wise? I wanna use a dildo onWeaponFire cancels and does an animation with an createExplosion and kills zombies around me. Link to comment
Moderators IIYAMA Posted February 16, 2018 Moderators Share Posted February 16, 2018 (edited) local peds = getElementsByType("ped", root, true) for i=1, #peds do local ped = peds[i] end getDistanceBetweenPoints3D() local x, y, z = getElementPosition(ped) local x2, y2, z2 = getElementPosition(localPlayer) killPed(ped) etc. https://wiki.multitheftauto.com/wiki/Scripting_Introduction Edited February 16, 2018 by IIYAMA Link to comment
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