Hi Chris
@ChrisIceBox, so, my turret works quit well now and it saves and loads correctly. However, how would I handle making multiple enemies? I mean, my turret is completely relying on an AC trigger that puts it to false (which covers the whole area where the player is walking on, since it falls with gravity, thus can fall on a lot of different places). Should I create an identical bool for every enemy so I am ending up in hundreds of bools in the Game Editor? But then I would also have hundreds of triggers in eahother. What is the best way to handle this?
Comments
I don't think you need a trigger / bool for this, actually. If you've already become familiar with Remember scripts, take a look at the RememberNPC script. That essentially saves things like position, rotation, walking state etc. I shouldn't think a RememberEnemy script would be too different. If your enemy script has a bool like "IsDead", then you could pass that onto the RememberEnemy script easily enough. What'll make is 10x easier to implement is if dead enemies are simply hidden from the scene, rather than deleted entirely.