Re: How to get actor's inventory and transfer items
CaveCricket48 wrote:
When the script is in the "Update" function, the sound of weapons switching is heard, so it probably gets the current weapon being held, switches to another weapon, and repeates.
Trying to fix the phoenix dilemma?
You know, the 'respawn, goddammit I have no guns, the guns get squashed, and ♥♥♥♥, the guns are destroyed' dilemma?
If you look at the whole enter process of the 'actor randomization' code, it figures out what the actor is holding, deletes it, and then gives the inventory to the newly spawned actor flawlessly.
Now you just need the actor to gib, and the rest is done for you.
Your code just makes the actor gib into itself, and give it the respawner.
Just make it so that the inventory gets recorded, gib the actor and it's inventory, create a new actor, and give it the old actor's inventory, and make sure there is only one respawner in it's inventory.