Ignoring Control Lines: Difference between revisions

From Sierra Wiki
Jump to navigationJump to search
Andrew Branscom (talk | contribs)
No edit summary
Andrew Branscom (talk | contribs)
No edit summary
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
[[Category:SCI Pages]]
[[Category:SCI Pages]]
[[Category:SCI Pages to be Edited]]
[[Category:SCI Pages to be Edited]]
[[SCI Tutorials and Guides|SCI Tutorials and Guides Table of Contents]]


<div align="center"><span style="font-size: 22pt">Ignoring Control Lines</span><br />''By [[Shane Cloud]]''</div>
<div align="center"><span style="font-size: 22pt">Ignoring Control Lines</span><br />''By [[Shane Cloud]]''</div>


<br />
==<br /> Introduction ==


If you want to make it so specific actors can walk through walls, it is as simple as telling them to ignore the white control lines. So if you had a ghost for example who could pass through walls. The instance would be the same for any regular actor, except when you init it try doing this.<br />
If you want to make it so specific actors can walk through walls, it is as simple as telling them to ignore the white control lines. So if you had a ghost for example who could pass through walls. The instance would be the same for any regular actor, except when you init it try doing this.<br />
Line 16: Line 17:
<syntaxhighlight lang="sci" class="cs">(GhostMan:observeControl(ctlBLUE)init())</syntaxhighlight>
<syntaxhighlight lang="sci" class="cs">(GhostMan:observeControl(ctlBLUE)init())</syntaxhighlight>


==<br /> References ==
<references />
==<br /> Related Links ==
* &nbsp;
&nbsp;
&nbsp;
[[Category:Control Areas]]
[[Category:Control Areas]]
[[Category:SCI Control Areas]]
[[Category:Scripting]]
[[Category:Scripting]]
[[Category:SCI Scripting]]
[[Category:Examples]]
[[Category:Examples]]
[[Category:SCI Examples]]

Latest revision as of 15:26, 29 April 2025


Ignoring Control Lines
By Shane Cloud



Introduction

If you want to make it so specific actors can walk through walls, it is as simple as telling them to ignore the white control lines. So if you had a ghost for example who could pass through walls. The instance would be the same for any regular actor, except when you init it try doing this.

Code:
(GhostMan:ignoreControl(ctlWHITE)init())


GhostMan can now walk through all white control lines. Similarly, if you would like a character to not cross say the blue control line you could also use.

Code:
(GhostMan:observeControl(ctlBLUE)init())


References



Related Links

  •