mirror of
https://github.com/exogen/t2-mapper.git
synced 2026-03-09 07:20:45 +00:00
Initial commit
This commit is contained in:
parent
2211ed7650
commit
ebb3dc9cdd
10121 changed files with 801 additions and 4 deletions
21
docs/base/@vl2/scripts.vl2/scripts/simGroup.cs
Normal file
21
docs/base/@vl2/scripts.vl2/scripts/simGroup.cs
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
//--------------------------------------------------------------------------
|
||||
//
|
||||
//
|
||||
//
|
||||
//--------------------------------------------------------------------------
|
||||
|
||||
function SimGroup::onTrigger(%this, %triggerId, %on)
|
||||
{
|
||||
// Just relay the trigger event to all sub objects...
|
||||
//
|
||||
for (%i = 0; %i < %this.getCount(); %i++)
|
||||
%this.getObject(%i).onTrigger(%triggerId, %on);
|
||||
}
|
||||
|
||||
function SimGroup::onTriggerTick(%this, %triggerId)
|
||||
{
|
||||
// Just relay the trigger event to all sub objects...
|
||||
//
|
||||
for (%i = 0; %i < %this.getCount(); %i++)
|
||||
%this.getObject(%i).onTriggerTick(%triggerId);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue