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:

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

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 http://gdn.giants-software.com/thread.php?categoryId=11&threadId=171, 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
Cheers


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