![]() |
detect where projectile hits wall?
is there any way to send the x/y of where the projectile hit a wall (or player) back to the NPC that sent it?
|
PHP Code:
|
ah, thanks.
While I'm on the topic is there any way to speed up projectiles? Really, I want one that fires very fast. |
Yes
HTML Code:
shoot x,y,z,angle,zangle,power,gani,ganiparams; shoots a projectile |
But I've got that already.
I take it power is the speed? I changed it, but with it changed, it doesn't hit destroy when it hits walls. |
I've always wanted another type of shoot command with a gravity param :(.
Anyways, if I remember correctly, the power parameter has different effects depending on the gravity. |
I've tried setting gravity high and low, it has an effect and while I can get it to change speed, I cant get it to hit walls at faster speeds. It just flies right over them.
|
If you set the power of the projectile then it will not work as a classic arrow anymore (which stops at tile walls), it will then fly over them except you place blocking npcs there.
|
Ok thanks. I really need it to hit the walls.
To be honest I'm probably abusing shoot() anyway. I'm using it from a light to determine which area should be light and which should be shadow in a level. Speeding up the projectile would speed up the process but ah well, it only needs to be done once per level. |
| All times are GMT +2. The time now is 02:52 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.