- Code: Select all
actorType=wall;
And then Collision - Any Actor - Script Editor
- Code: Select all
if(collider.actorType==wall)
{
//code
}
This way I wont have to keep adding physical response codes and whatnot, so if I wanted to add a moving platform I'd simply add actorType=wall to the script.
This would also come in handy for other things too
something tells me the answer is right in my face... lol