Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Hitobject on Gmap (https://forums.graalonline.com/forums/showthread.php?t=56317)

Salaisuus 12-05-2004 06:00 PM

Hitobject on Gmap
 
NPC Code:
if (weaponfired)
{hitobjects 1,playerx+1.5+vecx(playerdir)*2,playery+2+vecy(pla yerdir)*2;}



Strange, strange. That weapon wont work in my gmap other than in the upper left corner(a1).

I think I must have set up the gmap wrong or something.

Is there anything more I need to do than upload gmap and levels, and put npc with loadmap?

Slash-P2P 12-05-2004 07:59 PM

Quote:

Originally Posted by Salaisuus
NPC Code:
if (weaponfired)
{hitobjects 1,playerx+1.5+vecx(playerdir)*2,playery+2+vecy(pla yerdir)*2;}



Strange, strange. That weapon wont work in my gmap other than in the upper left corner(a1).

I think I must have set up the gmap wrong or something.

Is there anything more I need to do than upload gmap and levels, and put npc with loadmap?

First of all, read the KSI-GS stuff.
Next, make sure that is clientsided.
Third, Its not checking the Z factor, so its gonna trigger the action at the wrong spot. Try using triggeraction.


All times are GMT +2. The time now is 12:56 AM.

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