Help with dll modding

Started by mipen, October 07, 2014, 06:17:23 PM

Previous topic - Next topic

mipen

I have been wanting to create a mod which adds abilities to pawns. It would work similar to the attack button that colonists have when drafted. You click it, and it comes up with a target option on the mouse cursor. You click the target, whether it be the ground or a pawn, and it sends that information to the colonist as a job, which it then goes and completes. The trouble I am having is that I can't figure out how to make a click on a command enter a sort of 'targeting' state like the attack button dies, and from there have one left click be accepted as the target. If anyone could help or has done something like this before, I would greatly appreciate it if you could help me to understand how it is done :)