Interfaces
IPedBehaviorService
Service responsible for managing the behavioral logic and AI decision-making of peds.
Methods
StartBehavior
Starts the behavior logic for a specific ped.
Parameters
| Name | Type | Description |
|---|---|---|
| player | FPlayer | The player that triggered or is the target of the behavior. |
| fPed | FPed | The ped to start the behavior for. |
StopBehavior
Stops the behavior logic for a specific ped and resets its state.
Parameters
| Name | Type | Description |
|---|---|---|
| ped | FPed | The ped to stop the behavior for. |
StopBehavior
Stops the behavior logic for a specific ped and resets its state.
Parameters
| Name | Type | Description |
|---|---|---|
| networkId | int | The network id of the ped to stop the behavior for. |