Jump to content

Home

a sitting npc?


darthplite

Recommended Posts

Posted

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.

Posted

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),

Posted

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.)

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...