xtom Posted August 23, 2015 Posted August 23, 2015 Does anyone know how to increase range of melee attacks in FPSMeleeWeapon.lua - I don't understand the Transform:Normal in the code below, I thought increasing the 0.5 might work but it doesn't seem to make any difference. local pickinfo=PickInfo() local pos = self.player.camera:GetPosition(true) local dir = Transform:Normal(0,0,0.5,self.player.camera,nil) if self.entity.world:Pick(pos,pos+dir,pickinfo,0,true,Collision.Projectile) then Quote Check out my games: One More Day / Halloween Pumpkin Run
Einlander Posted August 23, 2015 Posted August 23, 2015 multiply the dir by how far you want it to reach in meters local dir = Transform:Normal(0,0,0.5,self.player.camera,nil) * distanceInMeters 1 Quote
xtom Posted August 23, 2015 Author Posted August 23, 2015 Works perfect, thanks! Quote Check out my games: One More Day / Halloween Pumpkin Run
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.