ID:273655
![]() Dec 4 2010, 1:03 pm
|
|
I want to change the players icon if theyre on water. Would i use the isicon() proc or something else?
|
![]() Dec 4 2010, 1:07 pm
|
|
The 'loc' variable will always be the location of the mob, if they're on the map it will be a turf.
|
The location of a mob is stored in its loc variable.
You would use istype() to check the type of that location. You would probably want to do this in Move(), as that's generally called when a mob's loc changes. |
If it's an object you'll have to use locate() to find it.
var/obj/water/W = locate() in loc |
but after that how would u change the iicon sorry for butting in ? would it be for example icon = "player_in_water.dmi"
|