Quote:
Originally Posted by theHAWKER
I want to make a weapon so when you use it your screen shakes up and gives you mp but takes away heath.
i have the heath giving and mp getting things, and they work nicely but when i tryed to make the screen shake nothing eaven hapens
im using "setfocus" then quickly changing it a bunch to give that effect.
this is my script test:
PHP Code:
//#CLIENTSIDE
funtion onWeaponFired(){
setfocus(1,1);
}
i have tryed it without clientside and it still wont work 
|
Spell 'function' right.
Anyway, I beleive you want:
PHP Code:
for (temp.i = 0; temp.i < 100; temp.i++)
{
setfocus(player.x + random(-1, 1), player.y + random(-1, 1));
sleep(0.05);
}
If you have any questions, Ask here :]
PS: Congrats on learning GS2, You're getting there!