forked from Simnation/Main
Dr. Teddy unantastbar
This commit is contained in:
parent
7835e64711
commit
f7dd6de31c
1 changed files with 9 additions and 1 deletions
|
@ -23,7 +23,15 @@ function spawnDoctor(coords, heading)
|
||||||
local ped = CreatePed(0, Config.DoctorModel, coords.x, coords.y, coords.z, heading or 0.0, true, true)
|
local ped = CreatePed(0, Config.DoctorModel, coords.x, coords.y, coords.z, heading or 0.0, true, true)
|
||||||
SetEntityAsMissionEntity(ped, true, true)
|
SetEntityAsMissionEntity(ped, true, true)
|
||||||
SetBlockingOfNonTemporaryEvents(ped, true)
|
SetBlockingOfNonTemporaryEvents(ped, true)
|
||||||
--stretcher = AttachStretcherToTeddy(ped)
|
|
||||||
|
SetEntityInvincible(ped, true) -- Unsterblich (kein Schaden möglich)
|
||||||
|
SetEntityCanBeDamaged(ped, false) -- Kein Schaden erleiden
|
||||||
|
SetPlayerCanTargetEntity(ped, false) -- Kann nicht angegriffen werden
|
||||||
|
TaskSetBlockingOfNonTemporaryEvents(ped, true) -- NPC reagiert nicht auf Angriffe
|
||||||
|
|
||||||
|
SetPedFleeAttributes(ped, 0, false) -- Flieht nicht bei Gefahr
|
||||||
|
SetPedCombatAttributes(ped, 46, true) -- Keine Kampfreaktionen
|
||||||
|
SetPedAlertness(ped, 0) -- Keine Alarmreaktionen
|
||||||
return ped
|
return ped
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue