Community Forum

Purchasable Callback

Forum Overview >> Farming Simulator 19

CategoryFarming Simulator 19
Created28.02.2021 13:51

Ed Propsner (crotchfrog) 28.02.2021 13:51
Is there a way to embed a buying point into the map without making it a placeable and then reference it via script callback and filename location something like you would do for animated objects? I'm sure there must be but I can't seem to find it. I tried BuyingStation.onCreate and that didn't seem to work. It was just a guess but I was hopeful :)

Bilbo Beutlin (BBeutlin) 28.02.2021 18:40
Where is the problem to make it placeable and insert via defaultItems?

The BuyingStation is intended as placeable. See
The load() function expects an external station.xml and doesn't support reading user attributes from map.i3d by getUserAttribute().

Ed Propsner (crotchfrog) 28.02.2021 19:00
It's not a problem, that's how I'm currently doing it. What I actually meant is the trigger itself, not the actual placeable. I have triggers that get reused fairly often and thought it would be much easier if I didn't have to make every one of them placeable.

Note: Log in to post. Create a new account here.