How to use SUBROUTINES in Battlefield 2042 Logic Editor Part 1 (Introduction)
This is the first of two parts looking at how to implement subroutines in the Portal Logic Editor. In this video I will take a look at what a subroutine is, why they are used, and how to set one up in Portal using a relatively simple example.
If you want to look at the code, the link is below. Make sure you use the Portal web editor to open it and duplicate it to make it yours.
Bear in mind this isnt a complete experience, just an example of how you can utilise subroutines to make your programs more efficient and readable.
Hopefully you enjoy the video, if you do and you haven't already, don't forget to click the subscribe button!
https://portal.battlefield.com/experience/rules?playgroundId=fca19500-7017-11ed-8ab4-b2c75200f7f2
Chapters:
---------------
00:00 - Introduction
00:45 - What is a Subroutine?
03:03 - What is a Parameter?
03:41 - Why use Subroutines?
04:32 - The original code
05:50 - Creating our first subroutines
10:57 - Getting rid of duplicated code using Subroutines
13:50 - Event Payloads and Parameters in standard subroutines
15:15 - Finishing up and a little task for you..
Other Videos By Battlefield Dad
Other Statistics
Battlefield 2042 Statistics For Battlefield Dad
At this time, Battlefield Dad has 84,930 views for Battlefield 2042 spread across 73 videos. His channel uploaded over 1 day worth of Battlefield 2042 videos, roughly 39.77% of the content that Battlefield Dad has uploaded to YouTube.