mirror of
https://github.com/exogen/t2-mapper.git
synced 2026-01-20 12:44:59 +00:00
22 lines
625 B
C#
22 lines
625 B
C#
//--------------------------------------------------------------------------
|
|
//
|
|
//
|
|
//
|
|
//--------------------------------------------------------------------------
|
|
|
|
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);
|
|
}
|