Page 3 of 4 FirstFirst 1234 LastLast
Results 21 to 30 of 37

  Click here to go to the first Developer post in this thread.  

Thread: Rope attachment scripting basics

  1. #21
    Why can we reassign nil in the first place? Wouldn't it be better to use nil as a standard dummy, and have nil itself be as locked down as constant numbers?
    Regards
    Carl Gustaffa - left this game due becoming Steam Exclusive

  2. #22
    Quote Originally Posted by CarlGustaffa View Post
    Why can we reassign nil in the first place? Wouldn't it be better to use nil as a standard dummy, and have nil itself be as locked down as constant numbers?
    Because any scripting command in the game can be overriden by a variable. And yes, it would probably be better if it would not be possible at all, perhaps suggest at CIT.

    Numbers cannot, so
    Code:
    0 = this spawn something;
    is fine too

  3. #23
    Hehe, they do? Never realized that, not even by accident.

  4. #24
    Created the ticket for ya; plz voooooote
    http://dev-heaven.net/issues/26088

  5. #25
    Done Hmm, "by design", interesting.

  6. #26
    Here is how I believe the length of ropes are controlled.

    RopeUnwind

    To change the length of a rope, use the ropeUnwind command:

    Description:
    Spoiler:

    Simple usage example:
    Spoiler:

  7. #27
    Is it possible to start the mission with rope attached to the helicopter and no cargo? How would one specify the length of the rope? I've been able to get a 150 feet line a few times by using: (heli1 distance cargo1) < 45
    It would be a bit more realistic to have to start with the rope empy, although it doesn't behave very well empty when its 150 feet.

  8. #28
    Here is how I believe objects can be atached to ropes.

    RopeAttachto

    To attach created rope to an object, use the ropeAttachto command:

    Description:
    Spoiler:

    Simple usage example:
    Spoiler:


    Below place in an initialization field of a helicopter place an object nearby named mycargo.
    Will create a rope which will unroll out of the helicopter, then after ten seconds will attach to the object mycargo.
    Spoiler:





    RopeCut

    To cut a rope, use the ropeCut command:

    Description:
    Spoiler:

    Simple usage example:
    Spoiler:


    Note these are just the aspects I have gotten to work. Other syntax options may be possible.
    Last edited by blakeace; Nov 7 2011 at 03:39.

  9. #29

  10. #30
    Just to save confusion from Blakeace post

    myRope = ropecreate [myheli ,"slingload0",10,30,true];
    ropeCut [my_rope,10];
    above should be

    ropeCut [myrope,10];
    < change is my_rope to myrope for variable name of rope consitency in example

Page 3 of 4 FirstFirst 1234 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •