I have problem with Grenade launcher
local vecThrow;
vecThrow = self.Owner:GetAimVector();
vecThrow = vecThrow * 9000.0;
if ( !CLIENT ) then
//Create the grenade
local pGrenade = ents.Create("grenade_ar2");
pGrenade:SetPos( self.Owner:GetShootPos());
pGrenade:setAngles( self.Owner:GetEyeAngles() );
pGrenade:Spawn();
pGrenade:SetVelocity( Forward * 1900 )
pGrenade:SetOwner( self.Owner );
end
The error would have probably helped us, but that should be SetAngles, not setAngles.
thx
Sorry, you need to Log In to post a reply to this thread.