I am trying to make an ability where a Unit picks an enemy unit and throws it to the target location. I can get the enemy unit to be picked up and applied a force to throw the unit, however I do not know how I would be able to select the target point after selecting the unit. I have no idea where to start with this one and I can't think of any abilities in game to reference.
I suppose it'd be possible to use a search area to find the target and use a pull like this, that's a good idea and I'll try it. It still doesn't allow the player to pick the unit they would want to throw, however.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
I am trying to make an ability where a Unit picks an enemy unit and throws it to the target location. I can get the enemy unit to be picked up and applied a force to throw the unit, however I do not know how I would be able to select the target point after selecting the unit. I have no idea where to start with this one and I can't think of any abilities in game to reference.
Perhaps use the opposite approach, pick the target point and then use a negative force to 'pull' the unit towards it instead.
@BumpInTheNight: Go
I suppose it'd be possible to use a search area to find the target and use a pull like this, that's a good idea and I'll try it. It still doesn't allow the player to pick the unit they would want to throw, however.