turf/MouseUp(location,xx,yy)
This was made in 3.5, xx and yy stand for icon_x and icon_y. How would this work in 4.0 I'm guessing they would be params but I have no idea how to use params xD And yes I did look at the refrence.
ID:163289
![]() Sep 13 2007, 11:36 pm (Edited on Sep 13 2007, 11:43 pm)
|
|
turf/MouseUp(location,xx,yy) This was made in 3.5, xx and yy stand for icon_x and icon_y. How would this work in 4.0 I'm guessing they would be params but I have no idea how to use params xD And yes I did look at the refrence. |
![]() Sep 14 2007, 12:06 am
|
|
turf I tried doing this but it didn't work it gave me this error runtime error: Cannot read "default.map1".x proc name: MouseUp (/turf/map/MouseUp) usr: Miran (/mob/Player) src: the map (132,95,1) (/turf/map) call stack: the map (132,95,1) (/turf/map): MouseUp(the map (132,95,1) (/turf/map), "default.map1", "icon-x=26;icon-y=19;left=1") Miran94 (/client): MouseUp(the map (132,95,1) (/turf/map), the map (132,95,1) (/turf/map), "default.map1", "icon-x=26;icon-y=19;left=1") |
They were replaced by the control and location arguments and moved into params. An easy way to see how it all works:
client/MouseUp(object,location,control,params) |
Ah! I got this problem a lot last night before I worked it out. You need to use text2num() - that'll fix everything. It's just that the params are saved strictly as text so you can't do any maths with them!
~Ease~ |
I tried this and it works sadly MouseUp() is slow
MouseUp(location,control,params) |