-
What do you want to achieve? Keep it simple and clear!
I want to make a bomb system
-
What is the issue? Include screenshots / videos if possible!
i am confused on how i would do it
-
What solutions have you tried so far? Did you look for solutions on the Developer Hub?
i think what i could do is play the animation and then paste the bomb’s position to where the player’s mouse is
i want to make the script on my own and i want to know what i wrote is practical or not
There could be several ways.
But I would say
1 . Make a model
2 .Set the Primary Part .
3 .Create Explosion on the Primary Part when needed.
Adjust Blast Radius and Pressure etc.
Position the Primary Part of the model where you want the bomb to stay.
Thank you
this will help me alot!
Another advice just incase you need.
Making a bomb system basically means having a lot of bombs in your games and also stuff.
If I needed to make my code very clean and also organize things I would implement Object Oriented Programming into my code.
For example make a Class called Bomb.
Attach methods which the landmines , grenades and explosives will be able to use such as :Explode()
If you are free with applying this then this would be of great help to make your code better.
time to learn OOP i guess , might help me out i was ignoring OOP for a while because i thought it to be hard