omegaspectre Posted July 18, 2011 Share Posted July 18, 2011 (edited) Right, I need a script that makes an actor move to their combat target and explode. Like this: 1) Enters Combat2) Moves to Combat Target3) Explodes But I can't seem to work out how to do this.Help please? Omegaspectre Edited July 18, 2011 by omegaspectre Link to comment Share on other sites More sharing options...
Gribbleshnibit8 Posted July 18, 2011 Share Posted July 18, 2011 You might try looking at a Package, found under Actor Data in the Object Window. The GECK page on travel packages might be helpful, as well as the other package pages. You could approximate the seeking the player by using a travel package with the Continue In Comabt flag checked, with the player as the target. Or at least, I think you can, not sure if the player can be chosen as the destination of a package. But play around with them and you might be able to. I would think setting the actor to use a melee weapon might help, as their AI will force them into melee range in order to do combat. Play around with it and see what happens is the best bet. Try one of the test rooms (if you don't have your own test cell) to test things out. Link to comment Share on other sites More sharing options...
omegaspectre Posted July 18, 2011 Author Share Posted July 18, 2011 I think the melee weapon solution would be good for me, how would that work for an eyebot? Link to comment Share on other sites More sharing options...
nosisab Posted July 18, 2011 Share Posted July 18, 2011 Maybe you want to use the "MoveTo" script function, the syntax is shown in That GECK page Link to comment Share on other sites More sharing options...
omegaspectre Posted July 18, 2011 Author Share Posted July 18, 2011 Hmm, I don't know how to get it to work ingame though (read 1st post - I've edited it) Link to comment Share on other sites More sharing options...
nosisab Posted July 19, 2011 Share Posted July 19, 2011 What's the actual problem, moving toward the player or exploding? Link to comment Share on other sites More sharing options...
omegaspectre Posted July 19, 2011 Author Share Posted July 19, 2011 Both, its because I need it to move towards the current Target, so it only moves to it's target during combat. With the exploding I've tried the "kill" command and setting destruction data but it doesn't work. Link to comment Share on other sites More sharing options...
Gribbleshnibit8 Posted July 19, 2011 Share Posted July 19, 2011 If you've got the part where it dies when it reaches the target, then the explosion is simple. Just do a PlaceAtMe in your script, and then use the desired explosion as the placed object. Link to comment Share on other sites More sharing options...
omegaspectre Posted July 19, 2011 Author Share Posted July 19, 2011 Now I need to get the movement working.. It needs to move towards it's current enemy and explode Link to comment Share on other sites More sharing options...
Recommended Posts