Right now im kinda struggling with few things, i want to create and delete a local interaction only, i want it to be available only to the player i choose, i dont want it "hidden" or anything similar to that, i simply want it properly destroyed.
My problem in server is, whenever the player "dies" the interaction should be removed with this code:
Code: Select all
if(P != none && P.InteractionMaster != none && TheInteraction != None)
P.InteractionMaster.RemoveInteraction(TheInteraction);
lets use Instigator as reference the player.
I couldnt find anything related to this... here is how i create it, a minor change from another package:
PC=Controller
P=Player
Code: Select all
TheInteraction=InteractionClass(PC.P.InteractionMaster.AddInteraction("MyPackage.InteractionClass", PC.P))
i would also really enjoy a way to find if the player already has this interaction.
Any help will do thanks alot in advance and yes ive read the wiki.beyondunreal it just shows me mostly how to start it from a mutator to all players...