forked from Simnation/Main
[Garage] Fix NPC Posi
This commit is contained in:
parent
91265ef93c
commit
cbd02dde6e
2 changed files with 4 additions and 2 deletions
|
@ -38,12 +38,14 @@ function SpawnGuardNPC(npc)
|
|||
print("NPC erfolgreich erstellt mit Handle: " .. tostring(npcHandle))
|
||||
-- NPC Eigenschaften setzen
|
||||
SetEntityAsMissionEntity(npcHandle, true, true)
|
||||
SetPedDefaultComponentVariation(npcHandle)
|
||||
--[[ SetEntityAsMissionEntity(npcHandle, true, true)
|
||||
SetBlockingOfNonTemporaryEvents(npcHandle, true)
|
||||
SetPedDiesWhenInjured(npcHandle, false)
|
||||
SetPedCanPlayAmbientAnims(npcHandle, true)
|
||||
SetPedCanRagdollFromPlayerImpact(npcHandle, false)
|
||||
SetEntityInvincible(npcHandle, true)
|
||||
FreezeEntityPosition(npcHandle, true)
|
||||
FreezeEntityPosition(npcHandle, true) ]]
|
||||
|
||||
-- Optional: Animation für den NPC
|
||||
TaskStartScenarioInPlace(npcHandle, "WORLD_HUMAN_GUARD_STAND", 0, true)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue