Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Script Help Entity collide that uses every entity in the level?
Mudbill Offline
Muderator

Posts: 3,881
Threads: 59
Joined: Apr 2013
Reputation: 179
#2
RE: Entity collide that uses every entity in the level?

Unfortunately, wildcards (*) are not allowed in the entity name. There are a couple of ways to achieve this, but they mostly rely on a certain pattern with your allowed entities. Perhaps something you can do is add a "PlayerInteractCallback" in the Entity tab of each object, which all call the same function which will add the collide callback between it and your area. That would minimize a lot of your code, but requires you to add that interact callback to each one via the Level Editor.

(This post was last modified: 10-22-2018, 04:57 PM by Mudbill.)
10-22-2018, 04:56 PM
Find


Messages In This Thread
RE: Entity collide that uses every entity in the level? - by Mudbill - 10-22-2018, 04:56 PM



Users browsing this thread: 1 Guest(s)