I'm working on a class-based pickup for one of my mods, and what I am trying to accomplish is this:
When the item is picked up, it leaves behind a "ghosted" (translucent) version of the item that can't bet picked up on the spot where on the map it was placed and picked up from and after a certain amount of time, the ghosted version gets replaced with the original non-ghosted item pickup. Basically a visual respawn timer for items. The whole reason being that item itself is a weapon box that gives the player a special weapon unique to their class and, on the mod's UV and Nightmare-adjacent difficulties, items don't respawn.
Otherwise, I'd also like to know how Samsara's class-detecting weapon pickups work, too, as an alternative solution.
Ghost Item marker
- HellBlade64
- Forum Regular
- Posts: 109
- Joined: Mon Aug 13, 2012 9:03 pm
- Contact:
Re: Ghost Item marker
Have an actor that when picked up changes to a state where it is a ghost and can no longer be picked up. On pickup this actor should instead give the weapon and not itself, the actor always remains on the ground. Also call an ACS script that works the timer and you can use whatever respawn timer cvars you need here. When the timer elapses, SetActorState back to the initial state.