..()I never use it... and my code works just fine every time i compile and run.
ID:175648
Mar 24 2003, 8:21 am
|
|
What is the point of putting
|
In response to Unowuero
|
|
Unowuero wrote:
..() resets all the defaults of the parent of where you put it. Not quite. Not at all, infact. ..() calls the parent procedure. Example: mob/proc/Desc(mob/M) M << src.desc mob/player/Desc(mob/M) ..() M << src.biography This shows the desc of a mob examining another mob. If the mob being examined is a player, it first calls the parent procedure(..()), which shows src.desc , and then it shows them a biography. |
Example. If i set a mob's density to 0 and then I put ..()
It would give the mob it's defualt density of 1 since mobs are usually dense.