#No Pickup
1 messages · Page 1 of 1 (latest)
What the
which the vanilla also does by default
Coooll
Everyone can see this?
First thread! So much useful info on this thread yes yes
@tulip knot your function isn't fired
It is fired, however getCell():setDrag(nil, 0); is not performed.
try printing a message like "OnObjectAboutToBeRemoved"
I did print an actual IsoObject beforehand, it is fired and printed on each cursor hover.
game already prints the object by default in debug
on different point
I see now
Wonder why its not firing then, meanwhile the handle seems to be processing test results.
Might have to fallback to mouse events which is yikes.
If you want it to change for all objects it should be possible with something like
getSpriteManager():getSprite("..."):getProperties():UnSet("Moveable")
Nope, getSpriteManager() doesnt seem to be implemented yet.
Tried to get it from IsoCell:getSpriteManager() it fails at callstack immediatly by just the method name.
So gotta find another way.
Try without isocell
I just noticed we dont have a guides for modding annotated maps and meta events
No Pickup
Callframe at: getSpriteManger its simply not implemented or requires something as argument to work
but I don't see any definitions in TS defs
https://i.gyazo.com/740942d3ae3b951da1f0b6853b76812f.png
oh wait a minute
PipeWrench actually does say there should be a string.
At least I suppose the string is sprite name
getSprite("solarmod_tileset_01_8"):getProperties():UnSet("IsMoveAble")
So..
--getSpriteManager(""):getSprite("fixtures_counters_01_5"):getProperties():UnSet("Moveable");
getSpriteManager(""):getSprite("fixtures_counters_01_5"):getProperties():Clear();
UnSet() didn't work for movable. To be sure I performed Clear() to be sure I wipe any possible property.
It did affect the sprite, making it not being able to be placed a z+1 tile, meaning I did access it. But clearing didn't remove it from being picked up.
Lets see
you'll need to add the other faces if it has the effect you want
That didnt do much to my case.
https://i.gyazo.com/a823042d012a9aa77dfbf4fc4f98c7cd.png
Sprite name is proper too.
don't ask me how to set it back though, I couldn't do it when I was trying
@hollow canyondid you find a way for that?
getSprite("location_shop_accessories_01_1"):getProperties():UnSet("IsMoveAble");
Completely disabled Pick Up ability
Next question is how to stop them from being disassembled too.
Where do you find all sprite properties by names?
nvm
getPropertyNames(): java.util.ArrayList<string>;
To set it back? Hmm i dont think so cuz i never needed to undo since it only applies to players with believer trait
Update: You can set sprite property back this way
getSprite(sprite):getProperties():Set(p, "", toggle);
Set() seems to work if you suffice it with empty string and bool after property name.
