Community Forum

How to use attribute for scriptCallback

Forum Overview >> Farming Simulator 2009

CategoryFarming Simulator 2009
Created06.12.2009 14:29

Claudio Accotardi (unknown) 06.12.2009 14:35
Hi at all,
I won't write a script lua similar at "Barn Mover Trigger" but I don't understud how to use the code:

<UserAttribute nodeId="152">
<Attribute name="onCreate" type="scriptCallback" value="BarnMoverTrigger.onCreate"/>

that is I don't understud how to call if the file is not in dataS.gar?
Anybody can help me?
Thanks in advance
Best regards

Christian Ammann - GIANTS Software 07.12.2009 10:58
Hi Claudio,

How do you know that BarnMoverTrigger.onCreate is not in dataS.gar?

Claudio Accotardi (unknown) 07.12.2009 19:44
Hi Christian,
I have see it here in the topic, I have understand which the file is into file dataS.gar.
I want to create e script for sell the cow, my idea is to create e similar of barn for the cow.
You can help me to rewrite the code of attribute for use another script?
Thanks in advance
Best regards

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