• LUA | Garry's Mod | Turret | Help
    2 replies, posted
im using an turret(addon) and for some reason it keeps shooting from the base of the model, i've made a custom model for it and now trying to get it to shoot from a higher position. local source = self:GetPos() + Vector ( 0, 0, 24 ) local bullet = {} bullet.Src = source bullet.Damage = self.damage bullet.Force = 0 bullet.Spread = Vector( math.random(10), math.random(10), 0 ) bullet.Distance = 1000 bullet.Dir = ( self.enemy:LocalToWorld( self.enemy:OBBCenter() ) - source) now i've tried editing the self:GetPos() + Vector ( 0, 0, 100 ) ~ but for some strange reason even though the wiki says src is where the bullet comes from when i change this instead it changes where the bullet is going. any help would be really appreciated.
This is the programming section, not the gmod lua section. Lua Developer Discussion
thank you
Sorry, you need to Log In to post a reply to this thread.