Respawn AI Car at random position with LUA

Discussion in 'Programming' started by CBasura, Jan 15, 2020.

  1. CBasura

    Expand Collapse

    Dec 30, 2016
    Hi there!

    Im trying to create my first scenario, so i'm very new with all this.
    Until now i managed to create a "standard" police chase scenario in Utah with LUA (based on another chase scenario).
    But now what i want to add to this scenario is that once you busted the suspect, the suspect car respawns at a random point of the map (or at least, at it's previous beginning position)

    My question is: is there any function that allows me to do that to the ai car? I tried to respawn the player's car using the "be:resetVehicle(" command, but it doesn't work.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice