Use an actor that has FollowMouse on create actor. On mousebutton down, use
- Code: Select all
sendActivationEvent("gun");
In gun, add an activation event: create actor->shot.
You can also right click and say add activation event, but this sends it to just one clone, so I prefer to use the script function. In this case, it shouldn't matter, though.