Difference between revisions of "Talk:Dissecting the Scripts for Weapon Racks"

Jump to navigation Jump to search
m
imported>HawkFest
 
imported>HawkFest
Line 1: Line 1:
== Erroneous assertion ==
== Erroneous assertion ==


It's written : « OnTriggerEnter and OnTriggerLeave - Next, you see the OnTriggerEnter and OnTriggerLeave blocks inside the 'WaitingForReference' state. I'm not going to try and explain states here, but '''it's redundant and has no utility if you only have a single state in a script'''. »
'''It's written:''' « ''OnTriggerEnter and OnTriggerLeave - Next, you see the OnTriggerEnter and OnTriggerLeave blocks inside the 'WaitingForReference' state. I'm not going to try and explain states here, but '''it's redundant and has no utility if you only have a single state in a script'''.'' »


That's plain wrong : a singleton state can be essential e.g. when monitoring things, while using RegisterForSingleUpdateGameTime for instance. One example which is quite self-explanatory:
'''That's plain wrong:''' a singleton state can be essential e.g. when monitoring things, while using RegisterForSingleUpdateGameTime for instance. One example which is quite self-explanatory:
<source lang="papyrus">
<source lang="papyrus">
Scriptname FactionDetectionScript extends ObjectReference   
Scriptname FactionDetectionScript extends ObjectReference   
Anonymous user

Navigation menu