Shared variable
ulisse
Member Posts: 25
Hello
I have an actor with quite a complex script. This actor (let's say A) has a local custom variable named VAR.
I made a copy of this actor (B) to have a somehow different behaviour.
This caused a problem because the B-VAR is the same as A-VAR. Looks like both actors are using their own local variable but that this is the same one.
Can I avoid this?
Or should I delete the B local variable and recreate a new one in B?
Please help me.
Thanks
I have an actor with quite a complex script. This actor (let's say A) has a local custom variable named VAR.
I made a copy of this actor (B) to have a somehow different behaviour.
This caused a problem because the B-VAR is the same as A-VAR. Looks like both actors are using their own local variable but that this is the same one.
Can I avoid this?
Or should I delete the B local variable and recreate a new one in B?
Please help me.
Thanks