I've tried for hours with scripts but nothing seems to work. I'm trying to get a stormtrooper to use a disruptor rifle. I gave him sniper as a script_targetname. Here's an example of one of the many scripts I've tried.
affect ( "sniper", /*@AFFECT_TYPE*/ INSERT )
{
set ( /*@SET_TYPES*/ "SET_WEAPON", /*@WEAPON_NAMES*/ "WP_DISRUPTOR" );
}
affect ( "sniper", /*@AFFECT_TYPE*/ INSERT )
{
set ( /*@SET_TYPES*/ "SET_WEAPON", /*@WEAPON_NAMES*/ "WP_DISRUPTOR" );
}