New Creator Challenge: Simple Asset Spawning
Challenge Overview
This challenge introduces you to simple asset spawning using the desktop editor and Typescript.
You’ll learn how to:
Crea...
Added my baseball as an asset from the batting cage tutorial. While spawning, I learned that you can't do that from a local script. To modify the asset, I removed the ball script that was originally attached (it did the pseudo-spawn thing like in the tutorial. somewhere along the way, I lost the ability to actually hit the ball (during the tutorial, I got a nice "crack of the bat" sound effect and had to put colliders up to stop the ball from falling off the edge of the world. The spawn works like this: when you grab the bat, the ball will spawn from an offset from the player's position (not yet rotation). When you let go of the bat, the ball is deleted. I will keep working to get back the capability to actually hit the ball and will eventually add some graphics to document hits and misses.
I am glad this challenge was put out: I can see spawning items in many situations.
Great job on this. You are correct, local scripts cannot access PPVs or handle spawning/despawning. You may have to explore transferring ownership of the ball and bat to the player if you haven't already.