Reading entity's Range, Hitbox and Attack coordinates?

Hello there, fellow developers!

Are there any methods for a script to read an entity's current range? Is this a property?
Is it also possible to read hitboxes and/or attackbox?

I'm currently triying to make a "change anim when certain entity is on range" script, but using the entity's range property (that changes acconding to its animations)

The "read entity's hitbox" is more a matter of curiosity than anything else.
 
Paulo HP Bender,

Both are read only accessible and the method is a bit awkward to use. They are getting replaced in next update with a much more elegant version that is writable.

Range:

getentityproperty(<entity pointer>, "range", <range sub property>, <animation ID>)

  • amin
  • amax
  • xmin
  • xmax
  • zmin
  • zmax

I don't remember the method to get body boxes and attack boxes. I put them in a few years ago, but they are again very inelegant and have better replacements coming.

In any case, you don't need range properties for what you're asking to do. Use checkrange(<entity pointer>, <target pointer>, <(optional) animation ID>). It returns true if there is a target in range of entity's animation. If you don't supply an animation, it assumes the current animation.

DC

 
I don't remember the method to get body boxes and attack boxes. I put them in a few years ago, but they are again very inelegant and have better replacements coming.
I'm sorry for necroposting, but are these "better replacements" available in the 4.0 version?
 
I had to cut them from initial release for time, but they're still on the way ASAP.

DC
Thanks, man, much appreciated.

For those who might be curious, I'm working on a "Particle Spawning" system that would... spawn... particles in random points around the character.
Using the character's bbox as coordinates would work wonders for things like flame particles and whatnot.
 
Thanks, man, much appreciated.

For those who might be curious, I'm working on a "Particle Spawning" system that would... spawn... particles in random points around the character.
Using the character's bbox as coordinates would work wonders for things like flame particles and whatnot.

Beat you to it by a few years. :P



DC
 
Back
Top Bottom