Thread: Vibration(ish)
View Single Post
  #3  
Old 05-24-2007, 12:22 PM
godofwarares godofwarares is offline
Webmaster
godofwarares's Avatar
Join Date: Dec 2006
Location: Florida
Posts: 552
godofwarares is on a distinguished road
Send a message via ICQ to godofwarares Send a message via AIM to godofwarares Send a message via MSN to godofwarares Send a message via Yahoo to godofwarares
Quote:
Originally Posted by theHAWKER View Post
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.0temp.100temp.i++)
{
setfocus(player.random(-11), player.random(-11));
sleep(0.05);

If you have any questions, Ask here :]



PS: Congrats on learning GS2, You're getting there!
__________________
What signature? I see no signature?
Reply With Quote