J Jamie New member Jun 12, 2019 #1 Trying to set a variable and it's not being shared correctly to other scripts. Looks like it sets it locally but doesn't share it. Can you confirm what I'm doing wrong? Attachments before run.png 251.4 KB · Views: 14 script.png 14.5 KB · Views: 16 script2.PNG 16.1 KB · Views: 14
Trying to set a variable and it's not being shared correctly to other scripts. Looks like it sets it locally but doesn't share it. Can you confirm what I'm doing wrong?
J Jamie New member Jun 12, 2019 #2 more images Attachments before run 2.PNG 296.9 KB · Views: 7 during run.png 288.4 KB · Views: 8
Justin Administrator Staff member Jun 13, 2019 #3 Instead of setting Target = transform you should set the Value of the target: Code: Target.Value = transform; By setting the Target directly you are creating a new SharedVariable.
Instead of setting Target = transform you should set the Value of the target: Code: Target.Value = transform; By setting the Target directly you are creating a new SharedVariable.