Spawning radiation sphere/bubble?
Discussion in 'Rust Development' started by Rakeki, Mar 27, 2016.
-
Not too sure what you are trying to get at. Do you want random zones of radiation?
-
What I want to be able to deploy is the White Sphere you would normally get from radiation, like the bubble you get in Battle Royale's. I'm a C# developer however I am relevantly new to Unity coding.
[DOUBLEPOST=1459080611][/DOUBLEPOST]This is the test class that I am tying to use
public void AddArea(BasePlayer player, GameObject mov)
{
var col = mov.AddComponent<SphereCollider>();
col.transform.position = player.transform.position;
(col as SphereCollider).radius = 400;
col.enabled = true;
}
As you can tell im quite the Unity noob lmao.
[DOUBLEPOST=1459261645,1459080482][/DOUBLEPOST]any idea?
[DOUBLEPOST=1459264715][/DOUBLEPOST]Like the bubble which decreases in size on the battle royale servers!
I have tried using ddraw however the positions are all to the player perspective/position.
