Jump to content

vargatom

Members
  • Posts

    27
  • Joined

  • Last visited

Reputation Activity

  1. Like
    vargatom reacted to palota in Infinite energy for engineers or ...   
    You can set g_engineerChargeTime
  2. Like
    vargatom reacted to Sol in Small LUA Server API   
    Updated.
     
    server_api.zip
  3. Like
    vargatom reacted to palota in ENTFLAG.CARRYINGGOAL   
    The chosen botToKill is never an engineer because botToKill has goal FLAG, but engineer has goal PLANT.
  4. Like
    vargatom reacted to palota in ENTFLAG.CARRYINGGOAL   
    foreach(g in Util.GoalTable("FLAGRETURN.*")) { Util.MapDebugPrint("Position " + g.GetPosition()); }  
  5. Like
    vargatom reacted to palota in ENTFLAG.CARRYINGGOAL   
    It does not count dead players because dead players cannot carry anything. But you can get distance to a dropped object from a FLAGRETURN goal.
    foreach(g in Util.GoalTable("FLAGRETURN.*")) { d = DistanceBetween(g, Vec3(-1824, 2115, 4)); Util.MapDebugPrint("Distance " + d); }  
  6. Like
    vargatom reacted to palota in ENTFLAG.CARRYINGGOAL   
    for ( i = 0; i < 64; i += 1 ) { if ( EntityIsValid(i) && GetEntFlags(i, ENTFLAG.CARRYINGGOAL) ){ d = DistanceBetween(i, Vector3(-1824, 2115, 4)); Util.MapDebugPrint("Distance " + d); } }  
×
×
  • Create New...