![]() |
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?
|
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.
|
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.