Quote:
Originally Posted by DustyPorViva
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(px, py) {
return (tileType(px, py) == 0) || (findAreaNPCs(px, py, 0.05, 0.05).size() > 0)); // not sure if that's the right tileType code, though
}
something like that