The otherEntity.script.scriptName.myFunction() method isnt working for me
It should do. Consider what the error message is saying and workout where it could be breaking. Use the browser debugger where possible to get more detail
Error is: Cannot read properties of undefined (reading ‘reset’)
Project: PlayCanvas | HTML5 Game Engine
script: Switch, and tweenshotgun
On the shotgun Entity, there’s no tweenShotgun script
So shotgun.script.tweenshotgun
in switch.js is undefined
You’ve put the script on Cube
omg i may be dumb
let me test tho