Battledale_PRC8/_module/nss/fr_iwd_qboatsw.nss
Jaysyn904 7b9e44ebbb Initial upload
Initial upload.  PRC8 has been added.  Module compiles, PRC's default AI & treasure scripts have been integrated.  Started work on top hak for SLA / Ability / Scripting modifications.
2024-03-11 23:44:08 -04:00

22 lines
571 B
Plaintext

void main()
{
object oDoor = GetObjectByTag("fr_iwd_todocks");
object oTarget = GetObjectByTag("fr_iwd_qboat");
if((GetLocalInt(oTarget, "Chk")==0))
{
DelayCommand(0.7, ActionPlayAnimation(ANIMATION_PLACEABLE_DEACTIVATE, 1.0, 0.0));
SetLocalInt(oTarget,"Chk", 1);
SendMessageToAllDMs("The docks WITH the ship has been activated.");
}
else
{
DelayCommand(0.7, ActionPlayAnimation(ANIMATION_PLACEABLE_ACTIVATE, 1.0, 0.0));
SetLocalInt(oTarget,"Chk", 0);
SendMessageToAllDMs("The docks WITHOUT the ship has been activated.");
}
}