Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 6, 2009, 5:29:39 AM (15 years ago)
Author:
landauf
Message:

Using target= instead of name= to define the target-object in EventTarget. This avoids possible loops if more than one EventTarget point to the same object, because the other EventTarget becomes a target itself, passing the event back and forth.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/core5/data/levels/events.oxw

    r5883 r5890  
    9696    <Billboard name="bb3" position="100,150,0" material="Examples/Flare" colour="1.0, 1.0, 1.0" visible=0 />
    9797    <Billboard name="bb3" position="100,150,100" material="Examples/Flare" colour="1.0, 1.0, 1.0" visible=0 />
    98     <EventTarget name="bb3">
     98    <EventTarget target="bb3">
    9999      <events>
    100100        <visibility>
     
    144144    <EventDispatcher>
    145145      <targets>
    146         <EventTarget name="bb5" />
     146        <EventTarget target="bb5" />
    147147      </targets>
    148148      <events>
Note: See TracChangeset for help on using the changeset viewer.