Game level IDs to Spawned Actors?
RocketBrain
Member, PRO Posts: 269
Is it possible to assign game level IDs to spawned actors?
Comments
Send and Receive Data using your own Server Tutorial! | Vote for A Long Way Home on Steam Greenlight! | Ten Years Left
what i'd like is when i drag in a new actor called "tower", each one has a new ID or name like Tower1, Tower2, Tower3, Tower4...etc.
or am i going at this all wrong?
Option 1:
game.NewID (index attribute)
(In actor that will spawn tower)
On spawn:
Change game attribute game.NewID to game.NewID+1
Spawn Tower
(In spawned actor)
myID (index attribute)
Outside of rules at very top:
Change myID to game.NewID
Option 2:
(In spawned actor)
myID (real attribute)
Outside of rules at very top:
Change myID to game.Time
Option 2 doesn't require you to manage the ID's as its based on game time, but option 1 may be more useful as you're also creating a running count of towers.