Jump to content

Recommended Posts

I found something interesting with the 'attachTo' command recently,

in order for the 'attachTo' command to work properly, an object must have a varName, not just an object reference.
this means that the following code will not behave as intended:

_object = createVehicle [args]:
_object attachTo [args];

Instead i have to do something like below in order for it to work...

_object = createVehicle [args]:
_object setVehicleVarName "vehicle01";
_object attachTo [args];

I wish i knew this earlier....


Now it is entirely possible i am slow but i did not see anything about this
on the community wiki or written down anywhere for that matter
i dont know how to add it to the wiki myself or if i can add it myself,
But adding this on the 'attachTo' wiki somewhere would be a great help
in avoiding others slaving hours on a mod, just to find out that this is the issue.
Thanks!

Share this post


Link to post
Share on other sites

What exactly is your working and not code? It's very hard to believe you're true IMO because I have never experienced such, so please share your actual snippet.

  • Like 3

Share this post


Link to post
Share on other sites

Tested and working fine. Share your code, indeed.

  • Like 1

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×