Quote:
Originally Posted by Velox Cruentus
Make the object the weapon.
WEAPON.trigger(x,y);
|
Hm, yes, but I already tried it, and getting someone elses weapon object is a bit problematic, like you've shown below:
1. Only weapon names that don't contain characters like - / or whatever work, otherwise you have to use makevar()/etc
2. As you said, in order to access the weapon of someone else you have to use with() which I remember shouldn't be used anymore
EDIT: Okay, with() should still be used, yet someplayer.weaponname/findweapon() not working doesn't make sense.
I'd suggest a findweapon for other players, not just the current one, also a .trigger() on a player should go to all weapons.
Quote:
Originally Posted by Velox Cruentus
Or, have it that the trigger is in a player class, so that findplayer(x).trigger() executes a function the player can have.
Something I do for that is a public function and simply do player.reset(); For example.
|
Thank you very very much for helping, but the thing isn't that I can't find a way to work around these things, it's just that I want to use things like they should work or were supposed to work (atleast I think that that they were to work this way).