Thread: Two questions.
View Single Post
  #1  
Old 09-13-2010, 10:23 PM
Jiroxys7 Jiroxys7 is offline
Hazard to Graal
Jiroxys7's Avatar
Join Date: Apr 2009
Posts: 343
Jiroxys7 will become famous soon enough
Two questions.

First Question:

Is there any way besides actionprojectile2() to cause something to happen when a projectile hits something? actionprojectile2() apparently cannot seem to differentiate between different projectiles. Say, If i want my projectile to explode when it hits a wall, actionprojectile2 will cause EVERY projectile to explode when it hits a wall. regardless of who shot it. And, since from what I understand, that there's currently no ways to find a projectile's id, generating a random number between 0 and 999999999, putting it in the projectile's params and copying it into a this.var, then putting if(params[whatever] == this.randval){blah;} still seems to trigger on every projectile. is there a way to find the id of the projectile yet? or is there a better function or method i should know about?

Second Question:

In one of my NPCs, I have it set so the players use a custom idle gani based on what weapon the have equipped. but when I tried it with another player, the custom idle gani seemed to only show clientside, and the regular idle animation was showed to everyone else (e.g. player A sees themself using the custom gani, but player B sees player A with the regular idle gani, and vice-versa) But from what I understand, such ganis should be globally viewable. what would normally cause this to happen?

Bonus Question: Remember that old function reflectarrow? I don't suppose there're any functions like that that work with shoot() projectiles are there?
__________________
MY POSTS ARE PRONE TO EDITS!
Reply With Quote