View Single Post
  #3  
Old 11-06-2009, 11:10 PM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by DustyPorViva View Post
I need help on a few things.

1) I have a gani and in the gani I have a script running. I have also sent an account name(ThisIsMyAltAccount, for example) via a player.attr[3]. In the gani I have:
player.chat = player.attr[3] @ " : " @ findplayer(player.attr[3]).account;
What does it echo? It echos: "ThisIsMyAltAccount : DustyPorViva(my account)". Why is this? Obviously it is sending the right account to check, but why is it returning my own account back in the findplayer?
GANI scripts are weird, it may just be a problem with them. Are you able to access the players[] or allplayers[] array(s)?

Quote:
2) How can I check for projectiles that have landed from the serverside? I have checked the many apparent functions for them(onActionProjectile, onActionSProjectile, onActionProjectiles) and none of them seem to work, even with just a findplayer("DustyPorViva").chat = "test" script.
onActionProjectile in the Control-NPC should work. I don't remember the parameters, but they should be obvious if you echo them.

Quote:
3) I have a custom movement system, and I don't want other players to be considered walls. How can I fix this? I tried noplayeronwall() but that's apparently serverside only.
The best way I can think of is to combine tileType and findAreaNPCs...

PHP Code:
function myWallCheck(pxpy) {
  return (
tileType(pxpy) == 0) || (findAreaNPCs(pxpy0.050.05).size() > 0)); // not sure if that's the right tileType code, though

something like that
__________________
Reply With Quote