PDA

View Full Version : Can CreateObject make player characters K1?


dragonturtle
07-02-2006, 07: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.
// - nObjectType: OBJECT_TYPE_ITEM, OBJECT_TYPE_CREATURE, OBJECT_TYPE_PLACEABLE,
// OBJECT_TYPE_STORE
// - sTemplate
// - lLocation
// - bUseAppearAnimation
// Waypoints can now also be created using the CreateObject function.
// nObjectType is: OBJECT_TYPE_WAYPOINT
// 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, 02: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.