View Single Post
Old 09-07-2013, 01:33 PM   #6
Junior Member
zbyl2's Avatar
Join Date: May 2008
Location: a galaxy far far away...
Posts: 320
Contest winner - Modding  Veteran Modder 
Script I wrote for TSLRCM to grant lightsaber forms to party members.
void main() {
	object oAtton = GetObjectByTag("atton", 0);
	int nParam1 = GetScriptParameter(1);
	GrantSpell(nParam1, oAtton);
GrantSpell() is the key here. Replace nParam1 with number corresponding a lightsaber form (look them up in spells.2da) and oAtton with whatever object you need (GetFirstPC() or whatever).
zbyl2 is offline   you may: quote & reply,