Hey guys! Quick question, under Slice Functions in the Plotscripting Dictionary it says, and I quote, "You may set parent a slice to a map layer to make it move with the camera just like heros and NPCs do." However, it does not offer an example of the proper syntax to make this happen. I have tried several different ways, but can't seem to get it to work. Something like this:
Well, I don't have my code in front of me, but I believe what you're missing is the "lookup slice" command around your sl:map layer 1. sl:map layer 1 is just an enum of some kind I believe, whereas lookup slice will return a reference to the actual slice object.
sotrain is exactly correct. slice lookup codes cannot be used in place of handles, you have to use the "lookup slice" command to get a slice handle from a slice lookup code