mob_spawn ![code/modules/mob_spawn/mob_spawn.dm 1](git.png)
Vars | |
facial_haircolor | sets a human's facial hair color |
---|---|
facial_hairstyle | sets a human's facial hair |
haircolor | sets a human's hair color (use special for gradients, sorry) |
hairstyle | sets a human's hairstyle |
infinite_use | Can this spawner be used up? |
mob_name | A forced name of the mob, though can be overridden if a special name is passed as an argument |
mob_species | /Human specific stuff. Don't set these if you aren't using a human, the unit tests will put a stop to your sinful hand. sets the human as a species, use a typepath (example: /datum/species/skeleton) |
mob_type | the type of the mob, you best inherit this |
outfit | equips the human with an outfit. |
outfit_override | for mappers to override parts of the outfit. really only in here for secret away missions, please try to refrain from using this out of laziness |
skin_tone | sets a human's skin tone |
spawned_mob_ref | Weakref to the mob this spawner created - just if you needed to do something with it. |
Procs | |
create | Creates whatever mob the spawner makes. Return FALSE if we want to exit from here without doing that, returning NULL will be logged to admins. |
Var Details
facial_haircolor ![code/modules/mob_spawn/mob_spawn.dm 30](git.png)
sets a human's facial hair color
facial_hairstyle ![code/modules/mob_spawn/mob_spawn.dm 26](git.png)
sets a human's facial hair
haircolor ![code/modules/mob_spawn/mob_spawn.dm 28](git.png)
sets a human's hair color (use special for gradients, sorry)
hairstyle ![code/modules/mob_spawn/mob_spawn.dm 24](git.png)
sets a human's hairstyle
infinite_use ![code/modules/mob_spawn/mob_spawn.dm 9](git.png)
Can this spawner be used up?
mob_name ![code/modules/mob_spawn/mob_spawn.dm 11](git.png)
A forced name of the mob, though can be overridden if a special name is passed as an argument
mob_species ![code/modules/mob_spawn/mob_spawn.dm 18](git.png)
/Human specific stuff. Don't set these if you aren't using a human, the unit tests will put a stop to your sinful hand. sets the human as a species, use a typepath (example: /datum/species/skeleton)
mob_type ![code/modules/mob_spawn/mob_spawn.dm 13](git.png)
the type of the mob, you best inherit this
outfit ![code/modules/mob_spawn/mob_spawn.dm 20](git.png)
equips the human with an outfit.
outfit_override ![code/modules/mob_spawn/mob_spawn.dm 22](git.png)
for mappers to override parts of the outfit. really only in here for secret away missions, please try to refrain from using this out of laziness
skin_tone ![code/modules/mob_spawn/mob_spawn.dm 32](git.png)
sets a human's skin tone
spawned_mob_ref ![code/modules/mob_spawn/mob_spawn.dm 36](git.png)
Weakref to the mob this spawner created - just if you needed to do something with it.
Proc Details
create
Creates whatever mob the spawner makes. Return FALSE if we want to exit from here without doing that, returning NULL will be logged to admins.