Note extracted for Cleo Scripts: Special Vehicle Functions.

« Older   Newer »
 
  Share  
.
  1.     +1   -1
     
    .
    Avatar

    .

    Group
    Administrator
    Posts
    957
    Reputation
    +23
    Location
    Teramo

    Status
    Offline
    Cleo scripts fill in the vehicle ID, not the vehicle Name.
    In this example:
    CODICE
    :start0
    wait 0
    if and
      Actor.DrivingVehicleType($PLAYER_ACTOR, #SCRAMJET)
    00E1:   player 0 pressed_key 17 // Primary Fire.
    else_jump @start0

    In the compiled .cs file Cleo script there will therefore be the ID that we find in the vehicle.ide file:
    CODICE
    4767,        scramjet,        scramjet,        car,                 SCRAMJET,         ZSCRAMJ,
    null,        ignore,                5,        0,        0,                -1, 0.71, 0.71,                0

    That is 4767 and not SCRAMJET.
    So if the vehicle is not added with the ID 4767, and it will hardly be so,
    the Cleo script will not work for this vehicle.
    In this case, or if the vehicle is not added, but replaced, it is necessary to recompile the .txd file (change the vehicle name, if different replacing it) with Sanny Builder 3.
    https://sannybuilder.com/index.html

    Sanny-Builder-Recompiler
     
    Top
    .
0 replies since 12/7/2021, 11:09   56 views
  Share  
.