Jump to content

How do I change the position of a spawned prefab?


Recommended Posts

Hello there. I'm trying to lower the prefab so that it's animation is direction on my character.

The bishop's attack projectile occurs several heights above a normal character height, so it won't look completely centered on the player.

The piece of generic code I'm working with is below. I've change the Z for height many times but couldn't get it right. 

Would I just have to do a custom animation to make it be centered? Below that is a better idea of my problem.

player = GLOBAL.SpawnPrefab("bishop_charge1").Transform:SetPosition(x, y, z)

Untitled.png

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
  • Create New...