02.07.2012, 11:50
um cool but I better wait for Alex009 to rerelease CNPC ^^
Sweet Mother Of God
I can FINALLY get my zombie script back up and start coding some INTELLIGENCE I love you, thank you for releasing this! |
maybe its a stupid thought..maybe your missing it so did you actually used
public OnRecordingPlaybackEnd() StartRecordingPlayback(RECORDING_TYPE,"yournpc"); ? if its not used the recording will obviously only be played once |
RNPC_CreateBuild(npcid, PLAYER_RECORDING_ONFOOT); // start build mode
RNPC_SetWeaponID(32); // Set weapon
RNPC_AddPause(500); // wait a bit
RNPC_AddMovement(0.0, 0.0, 0.0, 20.0, 20.0, 0.0); // start moving
RNPC_ConcatMovement(0.0, 20.0, 0.0); // Continue walking
RNPC_AddPause(200); // wait a bit again
RNPC_SetKeys(128); // aim straight forward
RNPC_AddPause(500);
RNPC_SetKeys(128 + 4); // Start shooting straight forward
RNPC_AddPause(500);
for (new i = 0; i < 360; i+=20) {
// Makes the NPC rotate slowly
RNPC_SetAngleQuats(0.0, i, 0.0);
RNPC_AddPause(150);
}
RNPC_SetKeys(128); // stop shooting
RNPC_AddPause(500);
RNPC_SetKeys(0); // stop aiming
RNPC_FinishBuild(); // end the build mode and finish the build
RNPC_StartBuildPlayback(npcid);