Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   shoot z parameter (https://forums.graalonline.com/forums/showthread.php?t=64065)

Raeiphon 02-12-2006 12:48 PM

shoot z parameter
 
I cant seem to get it right, playerz only fires the projectile in one set direction, I want it to fire in the direction that the player is facing, any ideas?

ZeLpH_MyStiK 02-12-2006 05:17 PM

The 'playerz' parameter in the shoot command does not determine which direction you shoot it in. Instead the 'angle' and 'zangle' parameters do. The parameter you mention determines the initial vertical (or rather the illusion of an illusion in Graal's case) position of the object being shot.

ApothiX 02-13-2006 03:32 PM

to make it fire in the direction of the player, use this in the angle parameter: getangle(vecx(playerdir), vecy(playerdir))


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

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