Quote:
Originally Posted by DustyPorViva
You still haven't shown us the scripts doing this. I mean if you don't want to, fine, but it just makes it nearly impossible for anyone to see what's going on.
|
that's because i can't show the script that triggers the public function; it's in another weapon, and i dont have access to it.
sorry.
i'll try to replicate it on testbed.
**EDIT**
it was quite easy to replicate, i only had to try once.
Public/Deas_Voice/Weapon:
(When you update this script, it goes to player's x/y, but if u move, it stays at that x/y)
PHP Code:
//#CLIENTSIDE
public function use() {
shootarrow(player.dir);
}
Public/Deas_Voice/WeaponTrigger:
(this is the wnpc you use to trigger the Weapon)
PHP Code:
//#CLIENTSIDE
function onWeaponFired(){
("Public/Deas_Voice/Weapon").use();
}
PS. these two exists on Testbed.
*Edit2: I've added "shootfireball(player.dir);" to the WeaponTrigger (on Testbed) because i want to show how it should look like.