Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Zoom (https://forums.graalonline.com/forums/showthread.php?t=75619)

bscharff 07-17-2007 11:22 PM

Zoom
 
How would make a player.zoom thing work server side?
More specifically, I'm making a weapon so I can set individual player image zoom like
//#CLIENTSIDE
if (weaponfired){
player.zoom = 2;
}
(Just A Simple Example)

killerogue 07-18-2007 12:10 AM

The zoom value is based between 0 and 1.

bscharff 07-18-2007 01:16 AM

I know it can be over 1 because on Zodiac Gambet would go 5 times his regular size :P

xXziroXx 07-18-2007 01:30 AM

For other players to see the zoom effect, it needs to be in a gani script.

zokemon 07-18-2007 01:37 AM

Gani script I find to be unstable at times. I suggest you just set it as an attribute like player.attr[30] = player.zoom;

Then in a system npc (something everyone has) do for (p : players) p.zoom = p.attr[30];

godofwarares 07-18-2007 04:32 AM

Quote:

Originally Posted by killerogue (Post 1331976)
The zoom value is based between 0 and 1.

Thats RGBA newb :P

bscharff 07-19-2007 12:34 AM

Could you give me a script to show the zoom? I got the player.attr part down.

killerogue 07-19-2007 12:39 AM

Quote:

Originally Posted by godofwarares (Post 1332026)
Thats RGBA newb :P

Isn't zoom based on that too? O.o

xXziroXx 07-19-2007 12:42 AM

Quote:

Originally Posted by killerogue (Post 1332318)
Isn't zoom based on that too? O.o

No.

player.zoom = 2;

Would make the player twice as big as normal.


All times are GMT +2. The time now is 04:21 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.