Jump to content


Photo

Range and creatures with reduced personal space


  • Please log in to reply
2 replies to this topic

#1 temnix

temnix
  • Member
  • 983 posts

Posted 05 April 2018 - 03:05 PM

When creatures' personal space gets set to 0, they can pass through others and come as close to being insubstantial as the Infinity Engine allows. On the downside, they don't perceive distance to others correctly, and others to them - neither can execute vis-a-vis MoveToObject actions, and these creatures attacks hit at any range, even with melee weapons. They themselves can be hit from any distance as well. I have managed to circumvent or use this feature a couple of times. One case was my Phantom Warriors with their javelins that can strike anywhere, and they are illusionary themselves, so only other illusions can attack them. Since, at this point, there are no other illusions except more Phantom Warriors with their own javelins (and a couple of plush werewolves in that circus tent), this is not really an issue. Another case was my version of Wraithform, which I will be publishing in a couple of days. Here the spell description fortunately says that a wraithformed creature can only attack ethereal beings, read - no one. So I disabled attacks, and the problem went away again.

 

But if I want to make illusions or other ghosts who fight in the melee, I should like some way around this range issue, if there one. Negative range for their weapons does not seem to do it.

 

Edit: I got it. Reduced visual range. They won't close in to attack, but they will swing if you bring them near.


Edited by temnix, 05 April 2018 - 03:18 PM.


#2 GeN1e

GeN1e

    A very GAR character

  • Modder
  • 1604 posts

Posted 06 April 2018 - 12:01 PM

You can also use range checks to the nearest viable target. I've seen some mild delays in script processing when using it for melee/ranged weapon switching, but nothing crucial.

 

Strange that MoveToObject() doesn't work, though. MoveToSavedLocation()/MoveToPoint() should work, but I guess you can't really use that when both actors move freely.


Retired from modding.


#3 temnix

temnix
  • Member
  • 983 posts

Posted 06 April 2018 - 01:21 PM

The offset actions don't work either. Like MoveToObjectOffset. At least not on the target's side, if it's a ghost. As for range checks - well, I'm glad to know that's an option, but these creatures are to be directly controlled. CONTROLLED, actually.