PDA

View Full Version : Player performing action function



Kaladin
01-29-2014, 03:25 PM
Is there a function to check if your player is currently performing an action?
If not any tips for detecting this?

Tried looking in docs but couldnt see anything.
Thanks

sdf
01-29-2014, 03:31 PM
If the action you are doing has an animation, you can try to determine the pixelshift in the playerBox.

If the action you are doing has a unique colour that occurs when performing it (i.e. Colour of fishing rod when casting), you can use colour detection.

Kaladin
01-29-2014, 04:05 PM
Ah, perfect thanks very much :)

Clarity
01-29-2014, 04:57 PM
If the pixelshift and/or color finds were perfected, you could make an interesting include!

sdf
01-29-2014, 05:06 PM
If the pixelshift and/or color finds were perfected, you could make an interesting include!

Closest thing to that was the isMoving function (under animation) from SRL-5, which is essentially what was suggested above (pixelshift method).

Clarity
01-29-2014, 05:11 PM
Yeah, that's based on minimap movement right? I think this guy was asking about actions moving or standalone (like is the player fishing or chopping wood atm).

sdf
01-29-2014, 05:44 PM
Yeah, that's based on minimap movement right? I think this guy was asking about actions moving or standalone (like is the player fishing or chopping wood atm).

Nah, the one in SRL-5 was based off mainscreen pixelShift. The similarly named function in SRL-6 is based off the minimap.

Olly
01-29-2014, 05:56 PM
Nah, the one in SRL-5 was based off mainscreen pixelShift. The similarly named function in SRL-6 is based off the minimap.

Nop srl-5's was based on the minimap. https://github.com/SRL/SRL-5/blob/18b70d0c7dff0dce154be06abf6b8b2a36af3d3e/SRL/core/animation.simba#L386

sdf
01-30-2014, 02:05 AM
Nop srl-5's was based on the minimap. https://github.com/SRL/SRL-5/blob/18b70d0c7dff0dce154be06abf6b8b2a36af3d3e/SRL/core/animation.simba#L386

My life is a lie. Perhaps it was animating.