View Full Version : Can CreateObject make player characters K1?

07-02-2006, 06:14 PM
Hi all,

in K1, during the moment when the PC multiclasses to a Jedi, I would like to create a level 1 copy of the PC to become the new player character, then destroy the original PC. My goal is to "restart" the PC as a Jedi.

However, I can't use the CreateObject function to create a player character. In nwscript.nss:

// 243: Create an object of the specified type at lLocation.
// - sTemplate
// - lLocation
// - bUseAppearAnimation
// Waypoints can now also be created using the CreateObject function.
// sTemplate will be the tag of the waypoint
// lLocation is where the waypoint will be placed
// bUseAppearAnimation is ignored
object CreateObject(int nObjectType, string sTemplate, location lLocation, int bUseAppearAnimation=FALSE);

Is there any possibility of creating a playable character with this function? I would need something viable to put in sTemplate, but what?

Lit Ridl
07-03-2006, 01:08 AM
Sounds unreal... But looks like there is useful function that has name something like SwithPC . You may add new character in party table and enter in this function his ID. And such for the full game. You may attach this ti dialog of your spawned PC. But in case you wrote it it is impossible.