Author Topic: Can an enemy activate a switch?  (Read 109 times)

Starlock

  • Jr. Member
  • **
  • Posts: 82
    • View Profile
Can an enemy activate a switch?
« on: October 26, 2017, 08:06:15 am »
I'm trying to make a projectile that activates a switch, but when I put in enemy:overlaps(entity) an error comes up saying that it expects an integer so I'm not sure what to do for this.

Christopho

  • Administrator
  • Hero Member
  • *****
  • Posts: 1053
    • View Profile
Re: Can an enemy activate a switch?
« Reply #1 on: October 26, 2017, 09:30:19 am »
Make sure that your entity parameter is a variable of type entity.