Jump to content
Sign in to follow this  
bluecewe

Issue with ropeCreate alternative syntax

Recommended Posts

According to the wiki, the ropeCreate command possesses alternative syntax, which allows for a rope to be created from one object.

However, when I use the alternative syntax in the following form, although a rope is created, the optional arguments appear to be ignored, and an error is thrown.

myRope = ropeCreate [helicopter, 'slingLoad0', 15, 5, true];

Error in expression <myRope = ropeCreate [helicopter, 'slingLoad0', 15>
Error position: <ropeCreate [helicopter, 'slingLoad0', 15>
Error Type Number, expected Array

Any assistance in this matter would be appreciated.

Share this post


Link to post
Share on other sites

Same issue for me. When I get this error, which is always, the rope length is never the length set in the parameters, it's only around 20 feet long or so.

Share this post


Link to post
Share on other sites

Seeing as that alt syntax is from 2011, it's possible its only for TKOH. When I use the auto complete example I get these:

ropeCreate [veh1, [0,0,-2], veh2, [0,0,0], 10]

or

ropeCreate [veh1, [0,0,-2], 10]

or

ropeCreate [veh1, [0,0,-2], veh2, [0,0,0], 10, [], ["ropeend", [0,0,-1]]]

If you want the rope to unwind you can always start it at zero and then use ropeUnwind

myrope = ropeCreate [vehicle player, [0,0,-2], 0];
ropeUnwind [myrope, 3, 10]

;

Edited by Benargee

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
Sign in to follow this  

×