View Full Version : a sitting npc?
03-07-2003, 08:00 PM
I know its possible i just don't know how to do it. I've seen some rodians in nar shadarr sitting down so if anyone knows how to make an npc sit please let me know.thanx.
03-08-2003, 06:11 AM
You'll have to give them a spawnscript. Here's one that I've already written.
rem ( "NPC Spawnscript for Sitting NPC" );
set ( /*@SET_TYPES*/ "SET_WEAPON", /*@WEAPON_NAMES*/ "WP_NONE" );
set ( /*@SET_TYPES*/ "SET_PLAYER_TEAM", /*@TEAM_NAMES*/ "TEAM_NEUTRAL" );
set ( /*@SET_TYPES*/ "SET_BEHAVIOR_STATE", /*@BSTATE_STRINGS*/ "BS_CINEMATIC" );
set ( /*@SET_TYPES*/ "SET_ANIM_BOTH", /*@ANIM_NAMES*/ "BOTH_SIT1" );
set ( /*@SET_TYPES*/ "SET_ANIM_HOLDTIME_BOTH", -1 );
Basically, take what I've written there and paste it into a TXT file. Save it in your scripts directory (e.g. scripts/mylevel/npcspawn_sitter.txt). Then open the file with BehavEd and click "Compile". Now in Radiant, click on the NPC entity that you want seated. Make sure the "start in solid" box is check. Now add the key "spawnscript" with the string pointing towards your spawnscript that you saved (e.g. mylevel/npcspawn_sitter.ibi),
03-10-2003, 02:46 AM
But remember that those dudes are after that INSIDE those chairs, and they don't like to let go of them. That is, they may not be able to walk away, but are stuck in place. (Even if they don't seem to be inside their chairs in the game.)
03-14-2003, 08:01 PM
Sorry guys i forgot about this thread...Anyway thanx for your help.:)
vBulletin®, Copyright ©2000-2015, Jelsoft Enterprises Ltd.