theRAPTLab / gsgo

GEM-STEP Foundation repo migrated from GitLab June 2023
1 stars 1 forks source link

Touches still triggers for an agent and itself #443

Open benloh opened 1 year ago

benloh commented 1 year ago

In GitLab by @jdanish on May 10, 2023, 07:02

Right now, inside of a Character named Player, we use the following:

featCall Player.Touches monitor 'Player' b2b

The intention is to then check for when Player 1 touches Player 2, 3, etc.

This mostly works, but we receive a call back when Player 1 touches Player 1, necessitating the following code:

ifExpr {{ agent.getProp('trackerId').value != Player.getProp('trackerId').value }} [[

In the touches feature, I'd have thought this addresses it around line 140:

if (agentId === t.id) return;

But it still comes through. Long-term, we'd of course like to somehow have thisCharacter and theOtherCharacter (or something) but short-term it'd be nice if this got filtered out since the ifExpr is confusing for kids.