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 02-12-2006, 12:48 PM
Raeiphon Raeiphon is offline
I never asked for this.
Join Date: Jun 2005
Posts: 855
Raeiphon is on a distinguished road
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?
__________________

I hope for nothing. I fear nothing. I am free.
Reply With Quote
  #2  
Old 02-12-2006, 05:17 PM
ZeLpH_MyStiK ZeLpH_MyStiK is offline
Scripter
ZeLpH_MyStiK's Avatar
Join Date: May 2003
Location: NYC
Posts: 553
ZeLpH_MyStiK is on a distinguished road
Send a message via MSN to ZeLpH_MyStiK Send a message via Yahoo to ZeLpH_MyStiK
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.
__________________
Reply With Quote
  #3  
Old 02-13-2006, 03:32 PM
ApothiX ApothiX is offline
Okiesmokie
Join Date: May 2004
Posts: 1,447
ApothiX is on a distinguished road
to make it fire in the direction of the player, use this in the angle parameter: getangle(vecx(playerdir), vecy(playerdir))
__________________


[06:24:19] * Parts: Skyld (i=silent@unaffiliated/skyld) ("Perhaps Okiesmokie did not realise that I like the boys. ")
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 05:19 AM.


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