NPC:SetSchedule
Açıklama
NPC'nin mevcut programını (schedule) ayarlar.
Argümanlar
Örnek
Bir NPC'yi bir entity'e (nesneye) doğru yürümeye zorlayan fonksiyon.
function NPCMoveTo( npc, ent )
if ( !IsValid( npc ) or !IsValid( ent ) ) then return end
npc:SetSaveValue( "m_vecLastPosition", ent:GetPos() )
npc:SetSchedule( SCHED_FORCED_GO )
-- npc:SetSchedule( SCHED_FORCED_GO_RUN )
end
Tüm sunucular · GmodTR Launcher · Rehber · GMod Wiki · GmodTR nedir? · Sunucu ekle · Discord