Difference between revisions of "Script Function: Q62V"
From Ultima Online: The Second Age
(Created page with " <span style="color:#0000FF">function</span> <span style="color:#0000FF">void</span> Q62V(<span style="color:#0000FF">obj</span> Q62O) { <span style="color:#0000FF">if<...") |
|||
Line 3: | Line 3: | ||
<span style="color:#0000FF">if</span> ([[Engine Function:_hasObjVar|<span style="color:#FF0000;font-weight:bold">hasObjVar</span>]](Q62O, <span style="color:#800000">"shipcommand"</span>)) | <span style="color:#0000FF">if</span> ([[Engine Function:_hasObjVar|<span style="color:#FF0000;font-weight:bold">hasObjVar</span>]](Q62O, <span style="color:#800000">"shipcommand"</span>)) | ||
{ | { | ||
− | [[Engine Function:_setObjVar|<span style="color:#FF0000;font-weight:bold">setObjVar</span>]](Q62O, <span style="color:#800000">"oldshipcommand"</span>, [[ | + | [[Engine Function:_setObjVar|<span style="color:#FF0000;font-weight:bold">setObjVar</span>]](Q62O, <span style="color:#800000">"oldshipcommand"</span>, [[Engine_Function:_getobjvar_int|<span style="color:#FF0000;font-weight:bold">getobjvar_int</span>]](Q62O, <span style="color:#800000">"shipcommand"</span>)); |
} | } | ||
return; | return; | ||
} | } |
Latest revision as of 02:44, 21 October 2018
function void Q62V(obj Q62O) { if (hasObjVar(Q62O, "shipcommand")) { setObjVar(Q62O, "oldshipcommand", getobjvar_int(Q62O, "shipcommand")); } return; }