#404 Need to mimic a evac function for spawns

بسته‌شده
2 سال پیش باز شده توسط neatz09 · 1 دیدگاه

see title

see title
devn00b نظر 2 سال پیش
مالک

Sorta not needed as we have SetPosition. However, npc's would tend to wander back to its spawn point so added a command to prevent this - ClearRunback(NPC). You can use the following to test (loc below is for GMHALL).

function hailed(NPC, Spawn)

FaceTarget(NPC, Spawn)

Say(NPC,"Hell no! I'm out! -poof-")

ClearRunback(NPC)

SetPosition(NPC, 684.86, -35.96, 1531.88, 250.63)

end

NPC should now port to the location and stay there.

Sorta not needed as we have SetPosition. However, npc's would tend to wander back to its spawn point so added a command to prevent this - ClearRunback(NPC). You can use the following to test (loc below is for GMHALL). function hailed(NPC, Spawn) FaceTarget(NPC, Spawn) Say(NPC,"Hell no! I'm out! -poof-") ClearRunback(NPC) SetPosition(NPC, 684.86, -35.96, 1531.88, 250.63) end NPC should now port to the location and stay there.
devn00b 2 سال پیش بسته شد
برای پیوستن به گفتگو، وارد شودید.
بدون نقطه عطف
بدون مسئول رسیدگی
2 مشارکت کننده
درحال بارگذاری...
لغو
ذخيره
هنوز محتوایی ایجاد نشده.