I do not understand how you use this command "AI GET ENTITY ACTION$".
I am trying to use this command with this code to play certain animations on the object "ROBOT".
IF AI GET ENTITY ACTION$(ROBOT)=Stopped
ENAN_OACANIMTRANSITION ROBOTANIM,1,FPSC,210,210,234,800,1,0
ENDIF
IF AI GET ENTITY ACTION$(ROBOT)=Moving Forwards
ENAN_ANIMSETPLAYSPEED FPSC,15
ENAN_OACANIMTRANSITION ROBOTANIM,1,FPSC,235,235,259,800,1,0
ENDIF
IF AI GET ENTITY ACTION$(ROBOT)=Moving Backwards
ENAN_ANIMSETPLAYSPEED FPSC,-15
ENAN_OACANIMTRANSITION ROBOTANIM,1,FPSC,235,235,259,800,1,0
ENDIF
IF AI GET ENTITY ACTION$(ROBOT)=Strafing Left
ENAN_OACANIMTRANSITION ROBOTANIM,1,FPSC,260,260,279,800,1,0
ENDIF
IF AI GET ENTITY ACTION$(ROBOT)=Strafing Right
ENAN_OACANIMTRANSITION ROBOTANIM,1,FPSC,280,280,299,800,1,0
ENDIF
But I get an error saying:
Types 'TEMP1' and 'Stopped' are incompatible at line 78.
I don't have a clue on what that means and how to fix it.
But I would really help if someone knows how to fix this.
Thanks