nonplusultra Posted December 17, 2012 Share Posted December 17, 2012 Does anyone have an idea, how to pull an enemy towards the player? I know about the pushactoraway negative value, but the value returns the havoc force Tried it with the following script: ref actor1short pdistanceshort cdistance begin OnTriggerEnter set actor1 to getactionrefif actor1.getinfaction playerfaction == 0set pdistance to actor1.getdistance playerset cdistance to (0 - pdistance) *0.045player.pushactoraway actor1 cdistanceactor1.damageav health 10endif end with this script I tried to find the common denominator between the havoc force and the distance units, but no multiplicator value seems to work :/ so any other suggestions? Link to comment Share on other sites More sharing options...
TrickyVein Posted December 17, 2012 Share Posted December 17, 2012 Hmm. Push the actor into the player by setting up a force behind the actor? Like if 'P' symbolizes the player, and 'A' the actor and lines of force can be represented using -----> or <----- imagine a scenario like this P A <------------------- instead of P <---------------- A Link to comment Share on other sites More sharing options...
Recommended Posts