@MiRRoRMaN 64
I'd put this at the start of the source:
global thirdPersonActive as Boolean
global thirdPersonElement as Integer
Then I would make an fpi command that does something like this:
case AIACTTHIRDPERSON:
if aiactionseq(seq).value <= 0
thirdPersonActive = 0
else
thirdPersonActive = 1
thirdPersonElement = e
endif
endcase
Then I would add this to the main loop:
if thirdPersonActive = 1
x = entityelement(thirdPersonElement).x
y = entityelement(thirdPersonElement).y
z = entityelement(thirdPersonElement).z
a = entityelement(thirdPersonElement).ry
d = 50 : rem Whatever distance you want
h = 20 : rem Whatever height you want
set camera to follow x,y,z,a,d,h,1,1
endif
I would also edit the code that positions the camera so that it will only position the camera if thirdPersonActive is set to 0.
If you don't understand then feel free to let me know and I'll help you as much as I can.
-TZK