Help With Turret
The picture supplied show a trigger box in front of the barrel and it moves with the level sequence set up.
i want to make it so when a player crosses the trigger box it shoots at the player. i have tried but cant seem to figure it out.
asked Apr 19 '18 at 08:56 PM in Blueprint Scripting
Easiest thing to do then would be to select the trigger box in the viewport. Open the level blueprint with the trigger box selected and right click in the level blueprint and search for "on actor begin overlap" that should pull up the overlap event. Once you have that go back to your viewport then select the turret instead, with the turret selected go back to the level blueprint and right click in the event graph and search for "create reference to selected object". Now you have a reference to the turret in the level blueprint. Within your turret blueprint you would script the "firing" mechanism and have it execute off of a custom event. So search for custom event in the turret blueprint and have that control the firing. Now back in the level blueprint, use the trigger overlap event and drag off from the bottom pin that says "other actor" or something like that, from that bottom pin cast to your player character. From the reference to the turret, drag off from there and in the search box find your custom event. Hook up the custom event to fire the turret to the success pin of the player cast. And that should do the trick.
answered Apr 20 '18 at 10:45 AM
Nebula Games Inc
Follow this question
Once you sign in you will be able to subscribe for any updates here