NPC:StartRecordingPlayback

From SA-MP Wiki

Jump to: navigation, search

NPC:StartRecordingPlayback


Warning: This NPC function was added in SA-MP version 0.3. It is not available in previous versions.


This will run a .rec file which has to be saved in the npcmodes/recordings folder. These files allow the NPC to follow certain actions. Their actions can be recorded manually. For more information, check the related functions.


Parameters:
(playbacktype, recordname[])
playbacktypeThe type of recording to be loaded.
recordname[]The filename to be loaded, without the .rec entension.


This function does not return a specific value.


public OnNPCEnterVehicle(vehicleid, seatid)
{
    StartRecordingPlayback(PLAYER_RECORDING_TYPE_DRIVER,"at400_lv_to_sf_x1");
}

Related Functions

The following functions might be useful as well, as they're related to this function in one way or another.

Personal tools