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

0 Members and 1 Guest are viewing this topic.

Starlock

  • Full Member
  • ***
  • Posts: 114
    • 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: 1190
    • 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.