Jump to content

Issues when controlling saber droid NPC


Recommended Posts

Posted

I have a little script I'm working on where the player will activate a trigger that will run a script which should, in theory, let them take control of one of the saber_droid NPCs. It works kind of, the problem is you can't get out of it (prompt says "Press 'Jump' to exit" but jumping doesn't exit) and even though the droid is equipped with a lightsaber, I can't activate it or attack with it. My script is very simple:

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

Anyone got any ideas on how to make this work?

EDIT: Out of curiosity I also tried just setting playermodel saber_droid with a script, and I can ignite the saber but I can't attack.

Posted

Originally this was only used for mouse droids, right? Those can't attack, so chances are that attacking simply isn't supported, but you'd have to check the source code to know for sure.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...