ID:155064
 
I am modding an old source file and would like my majin's candy ray attack to spawn the candy obj according to targets race.
The dev forums are not a code dispenser. We have no interest in helping you rip a crappy DBZ game.
In response to Robertbanks2
Alrighty then! You sir are a douche thx for nothing ass face!
If you don't know how to use an if() statement to do this, then you should probably start by looking at tutorials. Because what you're asking for is one of the most basic things you can ask for, meaning that if we answer this, you'll just keep coming back asking for snippets, rather than actually learning.

var/obj/candy/candy
if(race=="whatever")
candy = new(src.loc)
candy.icon_state="whatever race candy"
if(race=="whatever else")
candy = new(src.loc)
candy.icon_state="whatever else race candy"


In response to Ill Im
Thx! And the tuts are vague as hell. Again Thank you, I'll be sure to have a real question nex time.