Login x
User Name:
Password:
Social Links Facebook Twitter YouTube Steam RSS News Feeds

Members Online

»
0 Active | 27 Guests
Online:

LATEST FORUM THREADS

»
CoD: Battle Royale
CoD+UO Map + Mod Releases
Damaged .pk3's
CoD Mapping
heli to attack ai
CoD4 SP Mapping

Tutorials

»
HL2
ratings:
Awful Rating
Poor Rating
Average Rating
Good Rating
Excellent Rating
Make your NPC do something
Versions: You must be logged in to view history.

Created by TTTC!!!!!!!!
This tutorial will teach you how to make your NPC do something!

1) Make a room place he player spawn and some lights.
 
2) Make your NPC. It can be any NPC at all! I took NPC_barney. In the properties window, change his name to barney_1
 
3) Make an scripted_sequence entity. In the properties window give it the name script_1, Target NPC to barney_1. On Action Animation type a sequence which barney is going to do. You can see what he can do in Half-Life Model Viewer. And on Move to Position you can choose Walk. NOTE: Place the scripted sequence where you want barney to go and in which direction, by spinning the little compass in the properties window.
 
4) Make a brush with the toolstrigger texture. Press Ctrl+T while having the brush selected. Make it an trigger_once. Click the Output bar atop of the properties window. Click Add and on My Output Named type OnStartTouch below it type script_1 and under that type BeginSequence. If you couldnt type anything on the first line click apply and it will work. If you want the barney to do nothing for some seconds before he start walking to the scripted_sequence add some delay time.
 
5) Compile the map and then run it. When you walk into the trigger_once barney will start walking to the scripted_sequence then do the Animation.

Latest Syndicated News

»
Codutility.com up and runn...
Nice, and there still using the logo and template for the screenshots, which...
Codutility.com up and runn...
dundy writes...Quote:Call of Duty modding and mapping is barly alive only a ...
Codutility.com up and runn...
Mystic writes...Quote:It seems to me the like the site is completely dead? ...
Codutility.com up and runn...
It seems to me the like the site is completely dead?

Partners & Friends

»