position_is_behind_position

正在查看此主题的用户

I suppose it looks if one position is inside other position's rear semicircle. Rear defined by X and Y axes
You can easily test it btw
 
I don't believe so, it seems to just return true if the position is in a 180 degree arch behind the other position.  I used it when I was trying to make a multi-kill lightsaber a week or two ago...

插入代码块:
							 (agent_get_position,pos1,":player_agent"),
                             (try_for_agents,":agent"),
								(agent_is_alive,":agent"),
								(neg|agent_is_ally, ":agent"),
								(agent_get_position, pos2, ":agent"),
								(neg|position_is_behind_position,pos2,pos1),	
								(get_distance_between_positions,":dist",pos1,pos2),
								(lt,":dist",225),
                                                                ...
 
tFighterPilot 说:
So it doesn't have anything to do with rotation?
In fact it does have something to do with rotation, since rear arch of a particular position depends directly on the rotation of this position :smile:
 
Will this decrease the radius of the arc? I'm asking because I don't have much of an idea on what to test it on atm.

插入代码块:
(get_player_agent_no, ":ag"),
(agent_get_position, pos1, ":ag"),
(agent_get_position, pos2, ":ag"),
(position_rotate_z, pos1, 60),
(position_rotate_z, pos2, -60),
(neg|position_is_behind_position, pos3, pos1), 
(neg|position_is_behind_position, pos3, pos2),
 
it should decrease the angle of the arc, not the radius.

To test how it works and calibrate stuff, just pick a prop in a scene, assign its position to pos3 and make a keystroke trigger to message you if the prop is inside your desired arc.
I guess you would also want to set some max radius for the arc in the future, which can be done using get_distance_yada_yada tuple
 
GetAssista 说:
it should decrease the angle of the arc, not the radius.

To test how it works and calibrate stuff, just pick a prop in a scene, assign its position to pos3 and make a keystroke trigger to message you if the prop is inside your desired arc.
I guess you would also want to set some max radius for the arc in the future, which can be done using get_distance_yada_yada tuple
Ya I meant angle  :oops:

And I know about the get_distance thingy.
 
GetAssista 说:
I guess you would also want to set some max radius for the arc in the future, which can be done using get_distance_yada_yada tuple
插入代码块:
get_distance_yada_yada  = 710 # gets distance in centimeters between african tribes
				      # (get_distance_yada_yada,<destination>,<tribe_1>,<tribe_2>),
... What?

Could this be tested on training dummies? (they're destroyable)
 
Lumos 说:
GetAssista 说:
I guess you would also want to set some max radius for the arc in the future, which can be done using get_distance_yada_yada tuple
插入代码块:
get_distance_yada_yada  = 710 # gets distance in centimeters between african tribes
				      # (get_distance_yada_yada,<destination>,<tribe_1>,<tribe_2>),
... What?

Could this be tested on training dummies? (they're destroyable)
You're FUNNY! :neutral:
 
后退
顶部 底部