Skip to main content

Report this content

We want the Dreams coMmunity to be a safe, diverse and tolerant place for everyone, no matter their age, gender, race, sexual orientation or otherwise. If you believe this content to contradict these principles, you can file a report for our coMmunity teams to investigate.

Note that misuse of the reporting tool will not be tolerated.

Item being reported:

A forum post by Daanthk

So, what's really bugging me is that you're unable to overwrite variables in a local space. I have an object with some logic, and I want to copy the object several times, with each having it's own variables. When using the variable modifier, I'd have to rename all the modifiers and variables for each individual copy. While this is an option, I'd guess there is a way to do this locally.

In my case, I am creating a multiplayer game. I want to give a value to a box where players can step on. When they step on it, the value of the box changes.

For example:

No player has stepped on the box - Value = 0
Player 1 has stepped on the box - Value = 1
Player 2 has stepped on the box - Value = 2
Player 1 steps on the box again - Value = 1

I have all the logic in place, except for this bit. It is important the value stays the same when the player leaves the box, so it will only update once another player steps on the box again.

Oh dear! Your browser is either unsupported or there has been a problem loading the page.