I am trying to make a script where I can shoot an object, then I would be able to control the object’s direction with keys I assign to do so. I’m just enhancing a script I have with a gun that has three ammo types. One attracts the object to me, one attracts the object to a point that is shot first, and the last just makes the object float up. I’m not sure how to control an object remotely after shooting it though. Has anyone done this or would know how to? Doing this in C Sharp
Mybe you could just use states, in the player and the object script
ex:
bool isGravityGun
player script:
if(!isGravityGun){
` //handle player movements and actions}
objectScript:
if(isGravityGun){
`//handle object movements}