Ok, so first some context!
This script, which was made in the character blueprint, makes it so that when I press the left mouse button, I throw a grenade, which destroys itself within a set amount of time:

The "Add Grenade Ability" node or function that you see in there, houses this:

Then the SpawnActor Grenade node is linked to this Blueprint Class, which is an actor:

The grenade throwing is fine, the cooldown and delay is fine.
However, what I want to do is to have my grenade throwing abilities disabled at the start of the game. My grenade throwing abilities, I want it to be enabled when I hit a trigger. Hope that makes sense
So I'm guessing that I have to figure out how to set the value of that boolean variable ( I named it ignore input) when the player hits the trigger.
How do I do that? Also, I need to do this in a way where if the player beats that level and starts the next level, the player should still retain his/her grenade throwing ability.
If possible, screenshots of an example would really help, as I'm more of a visual learner and as a complete newbie, I don't understand all of the jargon.
This script, which was made in the character blueprint, makes it so that when I press the left mouse button, I throw a grenade, which destroys itself within a set amount of time:
The "Add Grenade Ability" node or function that you see in there, houses this:
Then the SpawnActor Grenade node is linked to this Blueprint Class, which is an actor:
The grenade throwing is fine, the cooldown and delay is fine.
However, what I want to do is to have my grenade throwing abilities disabled at the start of the game. My grenade throwing abilities, I want it to be enabled when I hit a trigger. Hope that makes sense

So I'm guessing that I have to figure out how to set the value of that boolean variable ( I named it ignore input) when the player hits the trigger.
How do I do that? Also, I need to do this in a way where if the player beats that level and starts the next level, the player should still retain his/her grenade throwing ability.
If possible, screenshots of an example would really help, as I'm more of a visual learner and as a complete newbie, I don't understand all of the jargon.
Comment