Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 03-11-2007, 08:34 PM
JkWhoSaysNi JkWhoSaysNi is offline
Ruler of the graalaxy
Join Date: Feb 2005
Location: Great Britain
Posts: 488
JkWhoSaysNi is on a distinguished road
Send a message via ICQ to JkWhoSaysNi
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?
__________________

Coming soon (Hopefully:P)
Reply With Quote
  #2  
Old 03-11-2007, 09:25 PM
Chandler Chandler is offline
Banned
Join Date: Jan 2007
Posts: 656
Chandler will become famous soon enough
PHP Code:
function onactionProjectile2() 
I think you need to add in the setshootparams the x/y of the position it was sent from
Reply With Quote
  #3  
Old 03-11-2007, 09:52 PM
JkWhoSaysNi JkWhoSaysNi is offline
Ruler of the graalaxy
Join Date: Feb 2005
Location: Great Britain
Posts: 488
JkWhoSaysNi is on a distinguished road
Send a message via ICQ to JkWhoSaysNi
ah, thanks.

While I'm on the topic is there any way to speed up projectiles? Really, I want one that fires very fast.
__________________

Coming soon (Hopefully:P)
Reply With Quote
  #4  
Old 03-11-2007, 10:28 PM
Chandler Chandler is offline
Banned
Join Date: Jan 2007
Posts: 656
Chandler will become famous soon enough
Yes
HTML Code:
shoot x,y,z,angle,zangle,power,gani,ganiparams; shoots a projectile 
Reply With Quote
  #5  
Old 03-11-2007, 10:38 PM
JkWhoSaysNi JkWhoSaysNi is offline
Ruler of the graalaxy
Join Date: Feb 2005
Location: Great Britain
Posts: 488
JkWhoSaysNi is on a distinguished road
Send a message via ICQ to JkWhoSaysNi
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.
__________________

Coming soon (Hopefully:P)
Reply With Quote
  #6  
Old 03-11-2007, 11:07 PM
napo_p2p napo_p2p is offline
oh snaps
napo_p2p's Avatar
Join Date: Sep 2003
Location: Pismo Beach, California
Posts: 2,118
napo_p2p has a spectacular aura aboutnapo_p2p has a spectacular aura about
Send a message via AIM to napo_p2p Send a message via MSN to napo_p2p
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.
__________________
Scito hoc super omnia.
Haec vita est tua una sola.
Dum vita superest, utere maxime quoque puncto, momento, et hora quae habes.
Tempus neminem non manet.
Noli manere tempus.
Carpe Diem

Seize the Day.
Reply With Quote
  #7  
Old 03-11-2007, 11:49 PM
JkWhoSaysNi JkWhoSaysNi is offline
Ruler of the graalaxy
Join Date: Feb 2005
Location: Great Britain
Posts: 488
JkWhoSaysNi is on a distinguished road
Send a message via ICQ to JkWhoSaysNi
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.
__________________

Coming soon (Hopefully:P)
Reply With Quote
  #8  
Old 03-12-2007, 04:15 PM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
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.
Reply With Quote
  #9  
Old 03-12-2007, 04:25 PM
JkWhoSaysNi JkWhoSaysNi is offline
Ruler of the graalaxy
Join Date: Feb 2005
Location: Great Britain
Posts: 488
JkWhoSaysNi is on a distinguished road
Send a message via ICQ to JkWhoSaysNi
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.
__________________

Coming soon (Hopefully:P)
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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