Script: Cov1 gas trap

From Ultima Online: The Second Age
Revision as of 00:45, 6 October 2018 by Grimoric (talk | contribs) (Created page with " <span style="color:#0000FF">inherits</span> globals; <span style="color:#0000FF">trigger</span> creation { attachScript|<span style="color:#FF0000;font-weight:bol...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
inherits globals;
trigger creation
{
  attachScript(this, "trap_gas_trap");
  return (0x00);
}
trigger message("cov_disarm")
{
  if (hasScript(this, "trap_gas_trap"))
  {
    detachScript(this, "trap_gas_trap");
  }
  return (0x00);
}
trigger message("cov_reload")
{
  if (!hasScript(this, "trap_gas_trap"))
  {
    attachScript(this, "trap_gas_trap");
  }
  return (0x00);
}