Note: LucasForums Archive Project
The content here was reconstructed by scraping the Wayback Machine in an effort to restore some of what was lost when LF went down. The LucasForums Archive Project claims no ownership over the content or assets that were archived on archive.org.

This project is meant for research purposes only.

NPC controll script

Page: 1 of 1
 [ION]Levi
04-30-2005, 4:16 PM
#1
I am creating a multiplayer level, and I want to insert an npc controll script. like in JK2 somewhere in the doomgiver if I am not wrong. the level wich you can controll the mouse-droid with the console. I heard it was impossible to open the original bsp files so I ask here if anyone nows how to make such a script like I said above...
 SMoKE
04-30-2005, 5:09 PM
#2
That's not possible in MP...
 [ION]Levi
05-01-2005, 3:08 AM
#3
ok, but how does it work in single player
 lassev
05-01-2005, 6:10 AM
#4
set_viewentity("NPC_targetname")
 [ION]Levi
05-02-2005, 10:48 AM
#5
thx:D I'll check it directly
 [ION]Levi
05-02-2005, 11:24 AM
#6
I'm kind'a n00b, how do I use it?
 lassev
05-03-2005, 5:08 AM
#7
You give the NPC you want to control an NPC_targetname key (and a value of your own choosing, xxxx) in Radiant.

You write a script containing:


affect ( "player", /*@AFFECT_TYPE*/ FLUSH )
{
set ( /*@SET_TYPES*/ "SET_VIEWENTITY", "xxxx" );
}


Then you place a target_scriptrunner in the map, point it to the script, target a trigger to the scriptrunner... And voila!

Needless to say, chances of getting this to work in MP might be slim. But of course I'm not MP mapper, so I wouldn't know...
 [ION]Levi
05-03-2005, 7:07 AM
#8
:amidala: thx
Page: 1 of 1