Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   can showimgs/showganis block? (https://forums.graalonline.com/forums/showthread.php?t=74297)

JkWhoSaysNi 05-30-2007 08:05 PM

can showimgs/showganis block?
 
For graalaxy's space ship system, I want to implement player/player colission. However, the ships are gani scripts that use showimg(). Is there any way to make these block (ideally in the same way as NPCs where transparent parts don't block).

or will I have to make an NPC which shares the players x/y and use setimg?


Thanks :)

cbk1994 05-31-2007 01:24 AM

Straight answer--no. You cannot make a showimg block, and I don't think you can a GANI. The only possible way to make a gani block would be to add a GANI script which either has the image shown with showimg, and then uses a setshape2, or if you actually set the GANIs image in a gani script.

I recommend using GANIs, then setting one of the players attributes to "GANINAME.gani" (must have the .gani), and then this will exist as long as the player does (you need to have an onPlayerEnters() if you want it to show when they enter, and you also need a timeout which constantly updates the x/y to the players.

GANI scripts are clientside, I don't think even a showgani on the npc-server would be serverside.


All times are GMT +2. The time now is 06:18 PM.

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