9
3

Fichman.lua 595 B

1234567891011121314151617181920212223
  1. --[[
  2. Script Name : SpawnScripts/EastFreeport/Fichman.lua
  3. Script Author : Dorbin
  4. Script Date : 2023.10.11 05:10:54
  5. Script Purpose :
  6. :
  7. --]]
  8. dofile("SpawnScripts/Generic/GenericEcologyVoiceOvers.lua")
  9. function spawn(NPC)
  10. SetInfoStructString(NPC, "action_state", "drinking_idle")
  11. SetPlayerProximityFunction(NPC, 5, "InRange", "LeaveRange")
  12. end
  13. function InRange(NPC, Spawn)
  14. GenericDrunkCallout(NPC, Spawn, faction)
  15. end
  16. function hailed(NPC, Spawn)
  17. FaceTarget(NPC, Spawn)
  18. GenericDrunkHail(NPC, Spawn, faction)
  19. end