03.01.2017, 18:18
how to get x,y,z of a bullet that penetrated to shotted player and make it a variable like new = BulletCoordinates;
BulletCoordinates = x,y,z of penetrated bullet and also my code gives error why?
it says invalid declarition or function
new myobject;
myobject = CreateObject(19836, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid, bodypart)
{ AttachObjectToPlayer(myobject, playerid, 1.5, 0.5, 0.0, 0.0, 1.5, 2);
return 1;
}
BulletCoordinates = x,y,z of penetrated bullet and also my code gives error why?
it says invalid declarition or function
new myobject;
myobject = CreateObject(19836, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid, bodypart)
{ AttachObjectToPlayer(myobject, playerid, 1.5, 0.5, 0.0, 0.0, 1.5, 2);
return 1;
}