03.06.2013, 15:33
Next round of answers incoming
I also dont fully understand animations yet. Simply speaking, the NPC performs an animation as long as the same animation id is set (that the id you can get via GetPlayerAnimationIndex, pretty sure theres a list of all the animation ids somewhere). Then you could e.g. do this:
Now theres the RNPC_SetAnimParams setter. It acutally doesnt set a single parameter, but that single variable contains multiple animation parameters at different bit offsets. Most likely in the same order as for ApplyAnimation, but I didnt experiment with animations a lot.
Thats a quite high-level function. So far not even the low-level stuff is working perfectly (simple movement, simple shooting, etc) so I wont create any mid- and highlevel stuff until the base is working as it should, else the new functions will be buggy too, and that wouldnt help anyone.
But if you need these functions, you can script them yourself easily . You could also try the FCNPC plugin, it is rather practical for direct controls like this.
You can ignore that warning, it disappears if you use RNPC_StopPlayback once in your script, else it just informs you that you dont use it.
I cant. I dont even know what script youre talking about. If this plugin is too complicated, dont use it. Its no shame as this one is really tricky to use. Better take a look at FCNPC then.
I also dont fully understand animations yet. Simply speaking, the NPC performs an animation as long as the same animation id is set (that the id you can get via GetPlayerAnimationIndex, pretty sure theres a list of all the animation ids somewhere). Then you could e.g. do this:
pawn Code:
RNPC_CreateBuild(npcid, PLAYER_RECORDING_ONFOOT);
RNPC_SetAnimID(1234); // Set animation
RNPC_AddPause(5000); // Perform it for 5 seconds
RNPC_SetAnimID(0); // Reset the animation
RNPC_AddPause(1000); // Do nothing for a second
RNPC_SetAnimID(1234); // Set animation again
RNPC_AddPause(5000); // performs animation from the beginning again
RNPC_FinishBuild();
Quote:
my suggestion
pawn Code:
|
But if you need these functions, you can script them yourself easily . You could also try the FCNPC plugin, it is rather practical for direct controls like this.
Quote:
after i compile it it say
warning 203: symbol is never used: "RNPC_StopPlayback" help :/ |
I cant. I dont even know what script youre talking about. If this plugin is too complicated, dont use it. Its no shame as this one is really tricky to use. Better take a look at FCNPC then.