Alithia Engine Script Events

Pubblicato il: 20 agosto 2010
sul canale di: badsectoracula
400
4

Added events in scripting. The events are fired when something like an entity touches another entity happens. To setup the event one sets a special attribute for an entity with the code for the handler. The engine will automatically setup a flag in the entity's structure to call the event code in the right time and ignore (not try to call code for) entities which do not have events set up. The code for the above behavior is

set-entity-attribute $ent motion-hit-ground "
print $ent hits the ground...
"
set-entity-attribute $ent motion-touch "
print $ent touches \$other-entity
"
set-entity-attribute $ent motion-touched "
print $ent was touched by \$other-entity
"


In questa pagina del sito puoi guardare il video online Alithia Engine Script Events della durata di ore minuti seconda in buona qualità , che l'utente ha caricato badsectoracula 20 agosto 2010, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 400 volte e gli è piaciuto 4 spettatori. Buona visione!