Hi, I’m trying to make a game level where the players are spawned into a large area at first, but then after a short time they are able to go to an extended part of the map due to a wall disappearing. Can anyone tell me how I can get my wall of disappear after 3 mins of the player spawning?
I think the easiest way is make a new Wall actor blueprint, give it a float variable called Timer and set the default to 180 (3 minutes). On the Tick Event, set the Timer variable to Timer - DeltaSeconds, check if the Timer variable is less-than-or-equal-to 0, and if it is, call DestroyActor. The wall will then destroy itself.
And rather than just have the mesh placed in the world, the Wall actor will have a Static Mesh Component set to the wall mesh, and the actor itself will be placed in the world.
Is there any reason why you want that to happen after 3 minutes?
Are you waiting for a level to load or players to familiarize themselves with the level?
What would the player(s) be doing during these 3 minutes?
Would it be may be more interesting if they hit an invisible collision box which will destroy the wall Destroy Actor)?
Are you thinking about adding an animation of the wall sliding up/down or left/right as a gate opening (in this case use Add Time node…etc)
Try this page: link text