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.

Can CreateObject make player characters K1?

Page: 1 of 1
 dragonturtle
07-02-2006, 6:14 PM
#1
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, 1:08 AM
#2
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.
Page: 1 of 1