B777 Engine Fail on Take-off
‘Simple failure’ - TAC should remain operational and will trim for you (10-13 units, depending on thrust/airspeed). Ideally your trainer will show this first and let you see how much trim has been applied.
Severe damage: engine indications may disappear, so TAC is automatically disabled in case this is only an indication failure and not an engine failure.
In this case 1) fly the aeroplane, 2) at a safe height/speed/attitude, apply the appropriate rudder trim…
Good luck, and enjoy.