Spawning actors
How can i spawn an actor that has a self attribute but i want it to be different from what the prototype has it set to. Is this possible.
How can i spawn an actor that has a self attribute but i want it to be different from what the prototype has it set to. Is this possible.
Comments
Yes, it's possible. For example, if you want an actor to have an incremental value in a self attribute, you would increase a game attribute by one just before spawning an actor and then in the spawned actor you would change self.attributeName to game.attributeName.
Explain a bit more. Do you have a series of numbers in mind or just a progressive numbering?
Tating answers thanks tho