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.

dblsbr into a lghtsbr

Page: 1 of 1
 L0rdReV@n88
12-23-2005, 7:49 AM
#1
i have this awsome double saber from oldflash and was wondering if it is possible to turn it into a single lightsbr hilt with one beam, i.e. like in the first movie when Maul attacks Qui-gon for the first time and turn it into a one handed weapon can you help. this is not a request its a question
 oldflash
12-23-2005, 7:51 AM
#2
 L0rdReV@n88
12-23-2005, 7:57 AM
#3
oldflash thats what im asking for but for kotor2 i need to find out how to do it for kotor 1 sorry
 oldflash
12-23-2005, 8:02 AM
#4
oldflash thats what im asking for but for kotor2 i need to find out how to do it for kotor 1 sorry
Oh, source code is included.

//:: k_hen_attacked01
/*
Default On Attacked Script
*/
//:: Created By: Preston Watamaniuk
//:: Copyright (c) 2002 Bioware Corp.

#include "k_inc_switch"
#include "k_inc_debug"

void main()
{
object oTarget = GetFirstPC();
object oOlditem4 = GetItemInSlot(4,oTarget);
if (((GetLastCombatFeatUsed(oTarget) == 8) || (GetLastCombatFeatUsed(oTarget)==19) || (GetLastCombatFeatUsed(oTarget)==81)) && ((GetStringUpperCase(GetTag(GetItemInSlot(4,oTarge t)))=="G_W_LGHTSBR01") || (GetStringUpperCase(GetTag(GetItemInSlot(4,oTarget )))=="G_W_DBLSBR001")))
{
ClearAllActions();
CancelCombat(GetFirstPC());
if ((GetStringUpperCase(GetTag(GetItemInSlot(4,oTarge t)))=="G_W_DBLSBR001"))
{
object oNew= CreateItemOnObject("g_w_lghtsbr01",oTarget,1,0);
SetItemStackSize( oNew, 1);
AssignCommand(oTarget,ActionUnequipItem(oOlditem4) );
DestroyObject(oOlditem4);
AssignCommand(oTarget,ActionEquipItem(oNew,4,TRUE) );
}
else
{
object oNew= CreateItemOnObject("g_w_dblsbr001",oTarget,1,0);
SetItemStackSize( oNew, 1);
AssignCommand(oTarget,ActionUnequipItem(oOlditem4) );
DestroyObject(oOlditem4);
AssignCommand(oTarget,ActionEquipItem(oNew,4,TRUE) );
}
ActionAttack(GetLastAttacker(oTarget),TRUE);
return;
}
ExecuteScript("k_ai_master", OBJECT_SELF, KOTOR_HENCH_EVENT_ON_ATTACKED);
}

Ask one programer if is possible to do that for k1.
 L0rdReV@n88
12-23-2005, 8:09 AM
#5
thanks for all your help oldflash your a lifesaver and thanks for the great models your letting me use
Page: 1 of 1