Skip to content

Instantly share code, notes, and snippets.

@Crystalwarrior
Created July 30, 2014 18:57
Show Gist options
  • Select an option

  • Save Crystalwarrior/6efe52ccfc0b816568d9 to your computer and use it in GitHub Desktop.

Select an option

Save Crystalwarrior/6efe52ccfc0b816568d9 to your computer and use it in GitHub Desktop.
if(%obj.isCrouched())
%boundBox = getWord(%obj.getDatablock().crouchBoundingBox, 2);
else
%boundBox = getWord(%obj.getDatablock().boundingBox, 2);
%ypos = getWord(%obj.getPosition(), 2) + %boundBox * getWord(%obj.getScale(), 2);
if (getWord(%col.getPosition(), 2) < getWord(%obj.getPosition(), 2) || getWord(%col.getPosition(), 2) > %ypos)
{
talk(getWord(%col.getPosition(), 2) SPC " | " SPC %ypos);
return;
}
%obj.lastBotTouchTime = $Sim::Time;
%bk.onBotSideTouched( %cl );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment