Specify a group and take action?
Posted: Wed Apr 25, 2012 6:06 pm
I'd like to know if it's possible to specify a "group type", something like for example, uh.. in create actor
And then Collision - Any Actor - Script Editor
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
- 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