Posts
159
Respect
55Add +1
Forum Rank
Pack-a-Puncher
Primary Group
Member
Login Issues
Forgot password?Activate Issues
Account activation email not received? Wrong account activation email used?Other Problems?
Contact Support - Help Center Get help on the UGX Discord. Join it now!![]() | Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. |
![]() UGX V.I.P. | |
![]() | Has shown excellence and experience in the area of custom mapping in the UGX-Mods community. |
![]() | Has shown excellence and experience in the area of custom scripting in the UGX-Mods community. |
![]() BO3 Modtools Alpha | This user has access to the Black Ops 3 Modtools Alpha |
Could you post what you have tried so we can see what your doing wrong.
Magic bullet should only really require a weaponfile and the vector at which you're shooting.
magicbullet("ray_gun", self.origin, target.origin); //self = playerforward = anglesToForward(self GetPlayerAngles());
magicbullet("ray_gun", self.origin,forward ); //self = player![]() | Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. |
![]() UGX V.I.P. | |
![]() | Has shown excellence and experience in the area of custom mapping in the UGX-Mods community. |
![]() | Has shown excellence and experience in the area of custom scripting in the UGX-Mods community. |
![]() BO3 Modtools Alpha | This user has access to the Black Ops 3 Modtools Alpha |



![]() | Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. |
![]() | Has shown excellence and experience in the area of custom scripting in the UGX-Mods community. |
![]() Oil Rig Beta Access |
The first one should work, the second one no.
Maybe it doesn't work because it's a projectile weapon? Have you tried with a bullet-weapon?
![]() | Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. |
![]() | Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community. |
![]() | Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. |
![]() | Has shown excellence and experience in the area of custom scripting in the UGX-Mods community. |
![]() Oil Rig Beta Access |
pos = self.origin;
pos = (pos[0],pos[1],(pos[2]+self GetPlayerViewHeight()));
fw = anglestoforward( self getplayerangles() );
impact = pos + vectorscale( fw, 3000 );
trace = bullettrace( pos, impact, true, self );
if( isdefined( trace["position"] ) )
{
magicbullet("zombie_colt", self.origin, trace["position"]);
}
pos = self.origin;
pos = (pos[0],pos[1],(pos[2]+self GetPlayerViewHeight()));
fw = anglestoforward( self getplayerangles() );
impact = pos + vectorscale( fw, 3000 );
magicbullet("zombie_colt", self.origin, impact );

