void main()
{
object oPC = GetLastUsedBy();
if (!GetIsPC(oPC)) return;
if (GetItemPossessedBy(oPC, "electricchair") == TRUE );
{
SetCutsceneMode(oPC, TRUE);
AssignCommand(oPC, ActionSit(GetObjectByTag("chairofdeath")));
DelayCommand(12.0, SetCutsceneMode(oPC, FALSE));
}
}
Cannot get it to compile... its supposed to aply the functions
SetCutsceneMode(oPC, TRUE);
AssignCommand(oPC, ActionSit(GetObjectByTag("chairofdeath")));
DelayCommand(12.0, SetCutsceneMode(oPC, FALSE));
to the player in possesion of the item with tag electricchair
But it wont compile and using object self in place of true performs those functions on the Pc who initiates the script and not on the Pc with the item of tag electricchair
Any help would be appreciated
Ser Red