mob
proc
prompt()
if(!client)
CRASH("The mob '[src]' has no client.")
// create the HudAlert object
var/Prompt/p = new(arglist(list(src) + args))
return p.prompt()
ID:854625
Jul 6 2012, 5:23 am
|
|
How does this proc works?. since there are no vars defined.
|
In response to Forum_account
|
|
Forum_account wrote:
You can pass any number of arguments to it so instead of having parameters like this: > mob/proc/prompt(text, option1, option2, option3) It uses the args variable, which is defined inside every proc and is a list containing the arguments passed to the proc. but what if i want to set their size to custom |
mob/proc/prompt(text, option1, option2, option3)
It uses the args variable, which is defined inside every proc and is a list containing the arguments passed to the proc.