1 (edited by FreedTerror 2020-01-01 19:34:37)

Topic: Stationary Projectile

Hi I'm in need of a land mine type projectile that doesn't move. The speed doesn't go below 1 for me in projectile options and I need it to be 0. Is there a way do this without source?

Share

Thumbs up Thumbs down

2 (edited by korea0799 2020-01-07 00:56:23)

Re: Stationary Projectile

Hi,

Once I did long time ago,
I make a script then attach it to prefab of  projectile.
just modify transform.position.x be 0 in Fixedupdate()

kind of tricky ha.

Share

Thumbs up +1 Thumbs down

Re: Stationary Projectile

If you have the source version, open MoveEditorWindow.cs and look for this line:

moveInfo.projectiles[i].speed = EditorGUILayout.IntSlider("Speed:", moveInfo.projectiles[i].speed, 1, 100);

Now change the 1 to 0. Like this:

moveInfo.projectiles[i].speed = EditorGUILayout.IntSlider("Speed:", moveInfo.projectiles[i].speed, 0, 100);
Like UFE? Please rate and review us on the Asset Store!
Questions about the Forum? Check out our Karma FAQ.
Don't forget to check our discord channel.

Re: Stationary Projectile

@korea0799 Thanks for the recommendation.

@Mistermind Thanks, I would love to see this in the next UFE update.

Share

Thumbs up Thumbs down

Re: Stationary Projectile

FreedTerror wrote:

@korea0799 Thanks for the recommendation.

@Mistermind Thanks, I would love to see this in the next UFE update.

It will be.

Like UFE? Please rate and review us on the Asset Store!
Questions about the Forum? Check out our Karma FAQ.
Don't forget to check our discord channel.

Re: Stationary Projectile

Another thing I would suggest for landmine projectiles is allow a prefab and a sound to be played if the landmines get destroyed after time.
https://i.imgur.com/TTJy3g7.gif

Share

Thumbs up Thumbs down