NPC Code:
//#CLIENTSIDE
function onKeyPressed(num1, key, num2)
{
if (key == "x")
{
ar = {player.x + (vecx(player.dir) * 2) + 1.1,
player.y + (vecy(player.dir) * 2) + 1.1};
triggeraction(ar[0], ar[1], "Sticked");
triggeraction(ar[0], ar[1], "DestroyBlock", 10);
setani("haven_staffstick",NULL);
freezeplayer(0.4);
sleep(0.4);
}
}
thats my current staffstick script how would i make it to send people to the osl? please help ;(