SA-MP Forums Archive
.rec file format - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: .rec file format (/showthread.php?tid=95322)



.rec file format - Y_Less - 03.09.2009

Is there any publically available information, or will there be any, on the .rec file format? Currently NPCs can only do pre-made recordings, which makes writing AI scripts which dynamically interact with the world very difficult. If we had access to the file format a system could be developed to enable functions such as NPCDriveToPoint, NPCWalkToPoint etc, being useful for certain types of scripts.

Edit: I just realised you could try use the velocity and angle functions for making paths, but it's still not a brilliant solution, especially given that that only covers z angles.


Re: .rec file format - Correlli - 03.09.2009

This question was on my mind, i hope we will have access to .REC files.


Re: .rec file format - V1ceC1ty - 03.09.2009

wouldnt it be easier to just use the commands to take them to a certain point?


Re: .rec file format - Y_Less - 03.09.2009

How do you mean?


Re: .rec file format - CracK - 03.09.2009

I had a suggestion having something like SetKeys(keys,duration); to use in npc-scripts, but having information about .rec file format will be more useful.


Re: .rec file format - Karlip - 03.09.2009

Y_less i'm sure some of the bot functions haven't even been released.

Wait until they're all out,please.


Re: .rec file format - MaTrIx4057 - 03.09.2009

I hope for functions like

MoveBot(x,y,z);
MakeBotShootAt(x,y,z); etc.


Re: .rec file format - Donny_k - 03.09.2009

If you attach an object to a player and then move the object does it stay attached and drag the player with it ?

If so you could move the object and play a walk animation to fake a MoveBotToPoint( bot, x, y, z, angle ).

Sadly I think I am wrong though and the object will become unattached but an idea is an idea

Quote:
Originally Posted by ssǝן‾ʎ
How do you mean?
I think he means like SetPlayerPos etc.


Re: .rec file format - Andom - 03.09.2009

Quote:
Originally Posted by Donny
If you attach an object to a player and then move the object does it stay attached and drag the player with it ?

If so you could move the object and play a walk animation to fake a MoveBotToPoint( bot, x, y, z, angle ).

Sadly I think I am wrong though and the object will become unattached but an idea is an idea

Quote:
Originally Posted by ssǝן‾ʎ
How do you mean?
I think he means like SetPlayerPos etc.
SetPlayerPos @ Bots works.


Re: .rec file format - Y_Less - 03.09.2009

SetPlayerPos works, but it's not very elegant.

Quote:
Originally Posted by ! Karlip
Y_less i'm sure some of the bot functions haven't even been released.

Wait until they're all out,please.
Possibly not, but even so, that still doesn't mean I'm not interested. It also means other people can write their own recording software.