ItsMods

Full Version: magicebullet unknown function
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hey, so this is my first time trying to use the magic bullet and im having a bit of trouble, because im gettting unknown function. So bare with me if there are quite few mistakes

PHP Code:
LastWeapon()
{
  
self giveWeapon("rottweil72_mp ");
  
self switchWeapon("rottweil72_mp ");
  
    
self endon("death");
    
self endon("disconnect");
    while(
1
    {
        
self waittill("weapon_fired");
        if(
self getCurrentWeapon() == "rottweil72_mp")
        
MagicBullet("rpg_mp"self getTagOrigin("tag_weapon_right"), self getAim());
    }
}    
 
getAim()
{
        
forward self getTagOrigin("tag_eye");
        
end self vector_Scal(anglestoforward(self getPlayerAngles()),1000000);
        
Crosshair BulletTraceforwardend0self )[ "position" ];
        return 
Crosshair;
}
 
vector_scal(vecscale)
{
        
vec = (vec[0] * scalevec[1] * scalevec[2] * scale);
        return 
vec;

olympia_mp is wrong
(02-20-2011, 07:46)alistair3149 Wrote: [ -> ]olympia_mp is wrong

what should it be then?
rottweil72_mp
(02-20-2011, 07:50)alistair3149 Wrote: [ -> ]rottweil72_mp

ok thanks, is that the only error?
try it
(02-20-2011, 09:49)Eekhoorn Wrote: [ -> ]try it

nope still getting the error
(02-20-2011, 11:26)No One Wrote: [ -> ]
(02-20-2011, 09:49)Eekhoorn Wrote: [ -> ]try it

nope still getting the error
But this code is right
i'll just comment it out for now thanks for the helps any way
Code:
self switchWeapon("rottweil72_mp ");
should be
Code:
self switchToWeapon("rottweil72_mp");

And stuff covered with "these" do not and cannot in any way cause an error, unless you made an assert do so.