User Tools

Site Tools


4rpl:commands:movetowardsandavoid

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
4rpl:commands:movetowardsandavoid [2021/01/08 16:01] – external edit 127.0.0.14rpl:commands:movetowardsandavoid [2025/02/14 14:57] (current) – external edit 127.0.0.1
Line 6: Line 6:
  
 ===== Description ===== ===== Description =====
-Takes a starting 3D position (a vector) and generates a new 3D position that is moved towards the target (a vector). The resulting point will not be displaced more than +Takes a starting 3D position (a 3-vector) and generates a new 3D position that is moved towards the target (also 3-vector). The resulting point will not be displaced more than the delta argument. 
-the delta argument.  The minHeight argument restricts how close, height wise, the resulting point can be to the terrain and/or creeper. +  * The delta is simply the speed (in cells) this unit moves per game frame. 
-The checkRange argument is an integer that specifies how many cells outward to inspect when inforcing the minHeight.  A value of 0 means to only check the map cell that the +  The minHeight argument restricts how close, height wise, the resulting point can be to the terrain and/or creeper. 
-target lands on. +  The checkRange argument is an integer that specifies how many cells outward to inspect when enforcing the minHeight.  A value of 0 means to only check the map cell that the target is currently within on. 
-The checkCreeper argument is a boolean indicating whether to look at creeper for enforing the minHeight. +  The checkCreeper argument is a Boolean indicating whether to look at creeper for enforcing the minHeight. 
-The checkAC argument is a boolean indicating whether to look at anticreeper for enforing the minHeight. +  The checkAC argument is a Boolean indicating whether to look at anticreeper for enforcing the minHeight. 
-The checkPseudoTerrain argument is a boolean indicating whether to look at invisible pseudo terrain (like a shield creates) for enforing the minHeight +  The checkPseudoTerrain argument is a Boolean indicating whether to look at invisible pseudo terrain (like a shield creates) for enforcing the minHeight.
 ===== Examples ===== ===== Examples =====
 <code 4rpl> <code 4rpl>
4rpl/commands/movetowardsandavoid.1610121708.txt.gz · Last modified: 2025/02/14 14:56 (external edit)