Quote:
Originally Posted by Deas_Voice
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.
|
The problem is fixed if you some how get the code you can't access changed to use triggers instead of calling a public function.