forget helping me bro. im going to comment on other VR video creators, because im failing horribly on getting you to address the missing parts of your videos to make it successful. good luck in your future.
Not sure what part(s) your having issues with. If you need help with scripting you can join us on Thursday nights at 9pm est in this world horizon.meta.com/world/10168484771680184 I should have time after class to see what you have and walk you through it.
Yes use spawn asset with call back and in the call back event use the launch from object code block found under motion. The asset will need to be set to use physics.
You will have to add a Boolean to where your firing and check if it is true to allow it to be fired. Then when it is fired set the Boolean to false and send to a custom event with a delay. In the custom event flip the Boolean back to true.
Having issues with my script. Once I combine everything the gun will shoot the projectile, I even have a sound animation that works. But if I attempt to change the color of the projectile after firing it the projectile turns invisible or stops working but the sfx still works when trigger is pulled. Any idea on what I’m doing wrong? My script was {when index trigger is pressed by player {launch projectile from (bullet variable) {Play sound on (sfx variable) Combined all objects and attached script variables. It worked went into test mode shot the gun had sound. Went back to creating mode changed color of the projectile from white to blue. Headed back into test mode no projectile but sfx was still there. I attempted to erase my variables from my script and detach entire script from the gun. Re did variables re attached script to gun. Still no projectile but still have the sound. Any idea what I’m doing wrong?
How fast is it being launched? Add the when projectile hits static object to script on the projectile launcher, add a debug with some text and see if it is hitting something or not. Might just not be able to see it. Will have to add a cube to fire at.
@@GausRothTutorials I had the projectile launch at 50 but for some reason I think the world was just not responding to the code. I sat there for 5 minutes pulling index trigger after I sent the comment to you and it ended up working. I gave up for the day went back and it worked fine. I set the speed to 250 to mess around and it worked as welI. I was wondering if you could help me with a script issue or possibly make a video on it. I made my script local to help with lag but even after that, the projectile doesn’t shoot straight from the point where I placed it if the player is moving left or right while pulling index trigger. It’s better but not perfect. Is there a loop for a script to make the projectile lag less? I’ve played a few worlds on horizon and seen that people have it very quick and responsive almost 0 lag. I just can’t find a video that shows the code or how to preform the actions. Thanks for the quick response from last comment 🙏
again, your video doesn't show HOW TO SWITCH TO NORMAL MODE AND TEST THE SHOOTING POSSIBILITIES!!! i can't do it, you can do it. why?!? you dont explain WHY or HOW you are testing the examples, do you already have a gun next to the shooter/arrow??? was this information included at the beginning of the video? im following it and it's failing. im reading others comments and they're not saying what im saying, so wtf is happenign here?!? DO WE NEED A GUN NEXT TO THE ARROW TO MAKE IT WORK VIA TRIGGER?!?!?!? because it's NOT shooting off anything at any CUBE in MY world. SMH. is this innate knowledge? i should've been born knowing this? is there BUT ONE video on youtube that actually shows ALL the steps to make the script WORK?!? i've yet to find ONE.
The arrow is the projectile launcher gizmo and this is what is being used to fire. It doesn't matter what it's attached to i.e gun, wand, nothing. You need to make sure your object references are linked properly to the object holding the script that is referencing the launcher gizmo. How you "launch projectile from launcher" is up to you but what you need to make sure is that the object reference is the correct object variable and it's is linked properly.
I go over all of this in the video so make sure not to skip through it and if necessary rewatch it a few times. There have also been some issues with edit mode so you might have to leave the world for a few minutes and return.
If you have any suggestions for future videos, please let me know here or on social media, see video description for links, and thanks for watching!
forget helping me bro. im going to comment on other VR video creators, because im failing horribly on getting you to address the missing parts of your videos to make it successful.
good luck in your future.
Not sure what part(s) your having issues with. If you need help with scripting you can join us on Thursday nights at 9pm est in this world horizon.meta.com/world/10168484771680184 I should have time after class to see what you have and walk you through it.
Great video, very well explained.
Thanks. Glad you liked it.
Anyway to make it spawn a custom asset with its own scripts/behavior? Instead of those preset prefabs. Thanks!
Yes use spawn asset with call back and in the call back event use the launch from object code block found under motion. The asset will need to be set to use physics.
How do i make a cooldown for guns that shoot when player presses trigger? I dont want spam with a sniper in my game
You will have to add a Boolean to where your firing and check if it is true to allow it to be fired. Then when it is fired set the Boolean to false and send to a custom event with a delay. In the custom event flip the Boolean back to true.
Having issues with my script. Once I combine everything the gun will shoot the projectile, I even have a sound animation that works. But if I attempt to change the color of the projectile after firing it the projectile turns invisible or stops working but the sfx still works when trigger is pulled. Any idea on what I’m doing wrong? My script was
{when index trigger is pressed by player
{launch projectile from (bullet variable)
{Play sound on (sfx variable)
Combined all objects and attached script variables. It worked went into test mode shot the gun had sound. Went back to creating mode changed color of the projectile from white to blue. Headed back into test mode no projectile but sfx was still there. I attempted to erase my variables from my script and detach entire script from the gun. Re did variables re attached script to gun. Still no projectile but still have the sound. Any idea what I’m doing wrong?
How fast is it being launched? Add the when projectile hits static object to script on the projectile launcher, add a debug with some text and see if it is hitting something or not. Might just not be able to see it.
Will have to add a cube to fire at.
@@GausRothTutorials I had the projectile launch at 50 but for some reason I think the world was just not responding to the code. I sat there for 5 minutes pulling index trigger after I sent the comment to you and it ended up working. I gave up for the day went back and it worked fine. I set the speed to 250 to mess around and it worked as welI. I was wondering if you could help me with a script issue or possibly make a video on it. I made my script local to help with lag but even after that, the projectile doesn’t shoot straight from the point where I placed it if the player is moving left or right while pulling index trigger. It’s better but not perfect. Is there a loop for a script to make the projectile lag less? I’ve played a few worlds on horizon and seen that people have it very quick and responsive almost 0 lag. I just can’t find a video that shows the code or how to preform the actions. Thanks for the quick response from last comment 🙏
@@error401k8 you have to assign ownership to the parent object and all non static objects within the group.
Max speed setting, is there one?
For the firing speed? Not sure what the upper limit is but if it's too fast the player may not even see it and/or collisions may not be detected.
again, your video doesn't show HOW TO SWITCH TO NORMAL MODE AND TEST THE SHOOTING POSSIBILITIES!!! i can't do it, you can do it. why?!? you dont explain WHY or HOW you are testing the examples, do you already have a gun next to the shooter/arrow??? was this information included at the beginning of the video? im following it and it's failing. im reading others comments and they're not saying what im saying, so wtf is happenign here?!? DO WE NEED A GUN NEXT TO THE ARROW TO MAKE IT WORK VIA TRIGGER?!?!?!? because it's NOT shooting off anything at any CUBE in MY world. SMH. is this innate knowledge? i should've been born knowing this? is there BUT ONE video on youtube that actually shows ALL the steps to make the script WORK?!? i've yet to find ONE.
The arrow is the projectile launcher gizmo and this is what is being used to fire. It doesn't matter what it's attached to i.e gun, wand, nothing.
You need to make sure your object references are linked properly to the object holding the script that is referencing the launcher gizmo.
How you "launch projectile from launcher" is up to you but what you need to make sure is that the object reference is the correct object variable and it's is linked properly.
I go over all of this in the video so make sure not to skip through it and if necessary rewatch it a few times. There have also been some issues with edit mode so you might have to leave the world for a few minutes and return.
Appreciate your videos. You break it down at a pace everyone can catch. And you show alternate ways to use the code blocks. 🫡
Glad you liked it!