Jump to content

The Loot

Members
  • Posts

    753
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by The Loot

  1. Yes, actually. A line in each vehicle spawn script can do it.

    Find the last "PushActionShowHide" command before the Lights/Sirens/Move commands, and insert a "PushActionWait" in front of it, like so:

    n.PushActionTurnTo(ACTION_APPEND,Rotate);
    n.PushActionWait(ACTION_APPEND,5.0f);
    n.PushActionShowHide(ACTION_APPEND,false);

    The numerical value is time in seconds you want to delay the vehicle appearing and carrying out further actions.

  2. When I saw Alex's video, I was really surprised at a sudden public release of this. Dusted off the ol' game to give her a try. Great quality!

    Traffic can be an issue, with vehicles getting stuck at intersections for unknown reasons (but probably the usual traffic light glitches).

    Treatment system is nice, but needing to RTFM outside the game makes it difficult.

    Script error. Context: After manually sending ranger to a scene, dispatched two more, and error occurred on second attempt.

    !Buy park ranger car
    ?(_LACallPatrolCar833e8): Error: Symbol n is not defined in current scope 
    ?(_LACallPatrolCar833e8):  FILE:mod:/scripts/game/command/LACallPatrolCar.script833e8 LINE:495
    ?(_LACallPatrolCar833e8): Error: Failed to evaluate n.SetSpeed(12.0f)
    ?(_LACallPatrolCar833e8): Possible candidates are...
    ?(_LACallPatrolCar833e8): filename       line:size busy function type and name  
    ?(_LACallPatrolCar833e8): 
    ?(_LACallPatrolCar833e8): !!!Dictionary position rewound... 
    ?(_LACallPatrolCar833e8): !!!Error recovered!!!

     

    • Upvote 1
  3. 12 hours ago, Tamir said:

    A script that you can tell the LACoFD equipment truck to go to the hospital for BLS escort. Example: call comes in about a heart attack, you send BLS and the equipment squad, one paramedic in the ambu and one in the squad, you send them both to the hospital, let the ambu drop off the patient and put back the paramedic in the squad. the script will send the squad to the hospital and wait for 1-3 minutes.

    I'd say it's a possibility.

     

    • Like 1
  4. On 2/8/2022 at 4:01 PM, hill12 said:

    Is the thing to change the years or the thing where you can have access to a dispatch screen to dispatch units

    I think the mod currently uses the same vehicle dispatching methods as the original LA mod: police officers can call patrol cars and air unit, and fire captains can call some fire and medical units, and then everything else uses the base game menus. 

  5. Quick idea is to check that the map object is named correctly, and that it has no flags/properties that would allow it to be interacted with in any way (I had a flag set that would allow a crane to pick up an object I used when I first added Limited Water to my personal mod).

    Can also try these lines

    GameObjectList spawnerList("SCSpawner");
    if (spawnerList.GetNumObjects()>0)
    {
      GameObject Obj=spawnerList.GetObject(0);
      Game::ExecuteCommand("SpawnVehicles",&Obj);
      System::Log("Freeplay: Vehicle Spawns Started");
    } 
    else
      System::Error("Freeplay: Vehicle Spawner Not Found");

     

  6. 12 hours ago, 2Bells Gaming said:

    I could be wrong, but to verify I'm learning things properly and to assist anyone in their learning, would this need to be defined in the beginning of the script, where the other variables would be defined?

    Wherever you find a PushAction used.

    You can likely find a ACTION_NEWLIST PushAction somewhere in the script, and then you can add the PushActionExecuteCommand line as an ACTION_APPEND like the example.

  7. 15 hours ago, emsfan112 said:

    But I have something screwed up the fire station command panel is not working and the vehicles are not spawning on the start of the game.

    Did you delete the original object? The missing commands (assuming that's the issue) were assigned to that object in the map editor; I avoid that by adding all the assigned commands to the objects in the spawn script. Speaking of, there is a name that the freeplay startup script checks objects for to run the spawn script on it/them.

×
×
  • Create New...