Code: Select all
function onUse(pUser, iUsed)
{
pUser.CustomTarget(0, "Who do you want to throw this rock at?");
}
function onCallback0(pUser, myTarget)
{
pUser.DoMovingEffect(pUser, myTarget, 0x1ea7, 0x07, 0x00, false);
myTarget.health -= 1;
}(I didn't put in any animations or anything yet, trying to get this to work first)