ID:266844
Jul 24 2002, 10:13 am
|
|
Ok I was wondering if there is a way to use a client proc in a mob verb?
|
Sure I did it in my old library :-p
mob/verb/Save() src.client.Save() client/proc/Save() var/savefile/F = new("Save Files/[ckey]") F["mob"] << mob F["x"] << mob.x F["y"] << mob.y F["z"] << mob.z That's just an example :-p on how I used it.1 |
In response to Foomer
|
|
I get the last one but the first 2 are confusin the hell outta me.
|
In response to DBZ Kidd
|
|
they are the same thing, the last one just checks if there is a client first, value is just some misc. variable you want to edit.
|
<code>client/proc/ClientProc() mob.value = whatever</code>
Edit client values through a mob proc like this:
<code>mob/proc/MobProc() client.value = whatever</code>
It's probably a good idea to check and make sure there IS a client before editing it though.
<code>mob/proc/MobProc() if(client) client.value = whatever</code>