News: Welcome back to Bullworth! If you haven't already, you will need to reset your password..


Author Topic: how can i make spawned ped moving like in free roam  (Read 3004 times)

0 Members and 1 Guest are viewing this topic.

Offline Edgar Munsen

  • Leader of the Townies
  • Jr. Member
  • **
  • Posts: 25
    • View Profile
how can i make spawned ped moving like in free roam
« on: September 03, 2013, 07:03:53 AM »
i used lua to spawn peds with their special AI but they didnt respond at all they just stand there.
HELP!

Offline c00ld0c26

  • The D0c
  • Can't Get Enough
  • *****
  • Posts: 5,137
  • Gender: Male
  • Just a dood doing dood things.
    • View Profile
    • My channel.
Re: how can i make spawned ped moving like in free roam
« Reply #1 on: September 03, 2013, 07:16:48 AM »
Here's the command :

PedWander(PEDName)

Replace PEDName with the name u gave the ped example :

Jerry = PedCreateXYZ...

Offline Edgar Munsen

  • Leader of the Townies
  • Jr. Member
  • **
  • Posts: 25
    • View Profile
Re: how can i make spawned ped moving like in free roam
« Reply #2 on: September 03, 2013, 08:14:24 AM »
Here's the command :

PedWander(PEDName)

Replace PEDName with the name u gave the ped example :

Jerry = PedCreateXYZ...
it didnt work

Offline c00ld0c26

  • The D0c
  • Can't Get Enough
  • *****
  • Posts: 5,137
  • Gender: Male
  • Just a dood doing dood things.
    • View Profile
    • My channel.
Re: how can i make spawned ped moving like in free roam
« Reply #3 on: September 03, 2013, 08:20:58 AM »
Can u send me the script u made?
Because last time I checked the command does work.

Offline Phap

  • Full Member
  • ***
  • Posts: 216
  • Gender: Male
    • View Profile
Re: how can i make spawned ped moving like in free roam
« Reply #4 on: September 03, 2013, 06:22:58 PM »
Can u send me the script u made?
Because last time I checked the command does work.
It doesn't work on all locations such as savehouses, harrington house, etc.

Offline Edgar Munsen

  • Leader of the Townies
  • Jr. Member
  • **
  • Posts: 25
    • View Profile
Re: how can i make spawned ped moving like in free roam
« Reply #5 on: September 03, 2013, 11:04:09 PM »
Can u send me the script u made?
Because last time I checked the command does work.
It doesn't work on all locations such as savehouses, harrington house, etc.
i spawned them in outside boy dorm

Offline Phap

  • Full Member
  • ***
  • Posts: 216
  • Gender: Male
    • View Profile
Re: how can i make spawned ped moving like in free roam
« Reply #6 on: September 03, 2013, 11:37:41 PM »
Then this is the code,
PedWander(Pedname, true)
c00ldoc forgot to add true as it is needed as part of the code.