Today we are going over persistent player variables and how we can use them to set health values for individual players. This first video will go over how we script player health and how to manipulate it in your Horizon World. If you’re brand new to scripting you should still be able to follow along but I’d recommend checking out my VR shooting range tutorial to get you started.
– Horizon Scripting Tutorial Series: https://www.youtube.com/watch?v=ixL0EPZDBH0&list=PLX3Wgprb5f56B5WKtIUpjOGQm4xGXNPYP
—————————Timestamps——————————-
0:00 Intro
1:10 Making a Persistent Player Variable for Health
3:01 Setting Player Health in Script
4:30 Referencing the Player with a Variable
5:50 Checking Health with an Event Loop
12:45 Script breakdown
14:25 Attaching the Script to a Control Object
15:26 Making the PAIN Alter
16:18 Using Triggers
17:24 PAIN Alter Script
19:38 Scripting Sound Effect
21:26 Attaching Script to Trigger
22:13 Testing Scripts
23:01 Outro
——————————Socials———————————-
Twitter: https://twitter.com/jackaldudegames
Socals: https://beacons.ai/jackaldudegaming
————————–Channel Gear——————————
*(Affiliate Links)*
Oculus Quest 2: https://amzn.to/39nLHjA
Sony a5100 mirrorless camera: https://amzn.to/3ptn4aQ
BOYA Lav mic: https://amzn.to/3iSe9NO
Deluxe Audio Strap: https://amzn.to/39nLrB8
Controller Grips: https://amzn.to/2L01WKA
#VR #quest2 #horizonworlds
source