IETS - v0.5.1
    Preparing search index...

    Function FollowObjectFormation

    BG2 barrel re-exports.

    Generated by ts-update. Do not edit manually.

    Uses named re-exports (not export *) so esbuild can statically resolve each binding without falling back to runtime __reExport helpers for externalized .d.ts modules.

    • This action instructs the active creature to follow the target object, in the specified formation, taking up the specified position. The Formation parameter represents the formation type (e.g. two lines, arrowhead, single line). The position should be in the range [0,5]. The example script is from dlsctc02.bcs.

       IF
         !Range("DLSCTC02",12)
         Global("DontFollow","DL0302",0)
       THEN
         RESPONSE #100
           FollowObjectFormation("DLSCTC02",1,6)
         RESPONSE #100
           FollowObjectFormation("DLSCTC02",1,5)
         RESPONSE #100
           FollowObjectFormation("DLSCTC02",2,6)
         RESPONSE #100
           FollowObjectFormation("DLSCTC02",2,5)
       END
       
       IF
         Global("FollowTheLeader","LOCALS",1)
         Range("DLSCTC02",6)
         Global("DontFollow","DL0302",0)
       THEN
         RESPONSE #100
           SetGlobal("FollowTheLeader","LOCALS",0)
       END
       
       IF
         OR(2)
         !Range("DLSCTC02",9)
         Range("DLSCTC02",1)
         Global("DontFollow","DL0302",0)
       THEN
         RESPONSE #100
           SetGlobal("FollowTheLeader","LOCALS",1)
           FollowObjectFormation("DLSCTC02",1,2)
         RESPONSE #100
           SetGlobal("FollowTheLeader","LOCALS",1)
           FollowObjectFormation("DLSCTC02",1,3)
         RESPONSE #100
           SetGlobal("FollowTheLeader","LOCALS",1)
           FollowObjectFormation("DLSCTC02",1,4)
         RESPONSE #100
           SetGlobal("FollowTheLeader","LOCALS",1)
           FollowObjectFormation("DLSCTC02",1,5)
         RESPONSE #100
           SetGlobal("FollowTheLeader","LOCALS",1)
           FollowObjectFormation("DLSCTC02",1,1)
         RESPONSE #100
           SetGlobal("FollowTheLeader","LOCALS",1)
           FollowObjectFormation("DLSCTC02",2,1)
         RESPONSE #100
           SetGlobal("FollowTheLeader","LOCALS",1)
           FollowObjectFormation("DLSCTC02",2,2)
         RESPONSE #100
           SetGlobal("FollowTheLeader","LOCALS",1)
           FollowObjectFormation("DLSCTC02",2,3)
         RESPONSE #100
           SetGlobal("FollowTheLeader","LOCALS",1)
           FollowObjectFormation("DLSCTC02",2,4)
         RESPONSE #100
           SetGlobal("FollowTheLeader","LOCALS",1)
           FollowObjectFormation("DLSCTC02",2,5)
       END
      

      Parameters

      • object: ObjectPtr
      • formation: number
      • position: number

      Returns Action