I can read what stickers are affecting a vehicle:
Code: Select all
for s, sticker in pairs(vehicle.stickers or {}) do
game.print(sticker.name)
end
Let's take the acid-sticker-behemoth as an example. According to the prototype browser, it modifies friction: Now, I can't read sticker.friction_modifier because only car prototypes have this property. Apparently, stickers attached to a car don't affect sticker.sticked_to.friction_modifier:
Code: Select all
/c p = game.player
car = p.surface.create_entity{name = "car", position = {p.position.x-10, p.position.y}, force = p.force}
old_friction = car.friction_modifier
p.surface.create_entity{name = "acid-sticker-behemoth", position = car.position, target = car}
game.print("Friction modifier before: "..old_friction.."\tafter: "..car.friction_modifier)