1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- --[[
- Script Name : SpawnScripts/Freeport/aMilitiaguard555559.lua
- Script Author : Premierio015
- Script Date : 2021.04.29 09:04:51
- Script Purpose :
- :
- --]]
- function spawn(NPC)
- movement_loop_start(NPC)
- end
- function movement_loop_start(NPC)
- MoveToLocation(NPC, 186.73, -3.67, 96.10, 2)
- MoveToLocation(NPC, 188.48, -3.64, 101.79, 2)
- MoveToLocation(NPC, 200.94, -10.51, 115.77, 2)
- MoveToLocation(NPC, 194.95, -10.52, 122.10, 2)
- MoveToLocation(NPC, 167.96, -16.11, 97.72, 2, "heading")
- end
- function heading(NPC)
- SetHeading(NPC, 59.77)
- AddTimer(NPC, 7000, "movement_loop_continue", 1)
- end
- function movement_loop_continue(NPC)
- MoveToLocation(NPC, 194.95, -10.52, 122.10, 2)
- MoveToLocation(NPC, 200.94, -10.51, 115.77, 2)
- MoveToLocation(NPC, 188.48, -3.64, 101.79, 2)
- MoveToLocation(NPC, 186.73, -3.67, 96.10, 2, "heading2")
- end
- function heading2(NPC)
- SetHeading(NPC, 31.32)
- AddTimer(NPC, 7000, "movement_loop_start", 1)
- end
- function hailed(NPC, Spawn)
- FaceTarget(NPC, Spawn)
- local choice = MakeRandomInt(1, 2)
- if choice == 1 then
- AddTimer(NPC, 7000, "movement_loop_continue", 1)
- else
- AddTimer(NPC, 7000, "movement_loop_continue", 1)
- end
- end
- function respawn(NPC)
- spawn(NPC)
- end
|