world
mob = /mob/player
mouse_pointer_icon = 'mouse.dmi'
Legacy of Lukai, The Secrets Within.dm:9:error:mouse_pointer_icon:undefined var
ID:148607
Dec 12 2002, 4:39 pm
|
|
Dec 12 2002, 4:44 pm
|
|
mouse_pointer_icon is a client var, not a mob var.
|
In response to OneFishDown
|
|
so how would i change it?
client.mouse_pointer_icon = 'mouse.dmi'
this?
usr.client.mouse_pointer_icon = 'mouse.dmi'
this? |
In response to Delita12345
|
|
This will set it:
<code> client mouse_pointer_icon = 'mouse.dmi' </code> If you want to change it during the game, as long as you say mob.client.mouse_pointer_icon it should work, provided the mob has a client connected to it. If there is no client connected to the mob you'd probably get a runtime error saying that it can't modify a null client, or something like that. |
In response to OneFishDown
|
|
I did just like you said but i still get this error.
Legacy of Lukai, The Secrets Within.dm:9:error:mouse_pointer_icon:undefined var
|
In response to Delita12345
|
|
Then you are probably trying to set the mob/mouse_pointer_var, not the client's var. Try usr.client.mouse_pointer_var = 'mouse.dmi' instead of what you have. Posting the line with the error would help.
|
In response to OneFishDown
|
|
ok, i have this.
world and get this.
Legacy of Lukai, The Secrets Within.dm:3:error:usr.client.mouse_pointer_icon:undefined var
|
In response to Delita12345
|
|
Like it's been said before:
<code> client mouse_pointer_icon = 'mouse.dmi' </code> Also, don't forget to set the hotspot for where you want the mouse to click (it defaults to the middle). |
In response to Garthor
|
|
I got it now. Thanks all!
|