
Posts
2,789
Respect
230Add +1
Forum Rank
King of the Zombies
Primary Group
Community Daedra
Login Issues
Forgot password?Activate Issues
Account activation email not received? Wrong account activation email used?Other Problems?
Contact Support - Help Center Get help on the UGX Discord. Join it now!
/*
Developer Script Playback
Version: 1.4
Tracks in-game scripted events
ONLY FOR DEVELOPER MODE
Scripted by BlueSoviet
***HOW TO USE THIS SCRIPT***
Function args(All are strings!):
Script - the unique name of the script you want to/have added.
Playback - the string you want added to the specific playback script.
1. Create a playback array by calling:
dev_create_playback(script);
2. Add a string to your playback script by using:
dev_add_playback(<script>, <something to add>); wherever you want to add a string
to the specific playback array.
3. Launch your map with developer and developer_script set to their max values,
then while in-game set the dvar "dev_playback" to the script you want to print
to the console(Doesn't show in the top-left area).
*/
#include maps\_utility;
#include common_scripts\utility;
dev()
{
/#
if(isDefined(level.playback))
assertMsg("Playback init function already called!");
level.playback = [];
SetDvar( "dev_playback", "" );
thread dev_dvar_playback();
#/
}
dev_dvar_playback()
{
/#
if(!isDefined(level.playback))
assertMsg("Dev function must be called first!");
while(1)
{
cmd = getdvar("dev_playback");
if(isdefined(level.playback[cmd]))
dev_print_playback(cmd);
SetDvar("dev_playback", "");
wait(.1);
}
#/
}
dev_create_playback(script)
{
/#
if(!isDefined(level.playback))
assertMsg("Dev function must be called first!");
level.playback[script] = [];
level.playback[script][0] = "***DEV SCRIPT PLAYBACK INIT***";
level.playback[script][1] = "DEV SCRIPT: " script;
#/
}
dev_add_playback(script, playback)
{
/#
if(!isDefined(level.playback))
assertMsg("Dev function must be called first!");
if(!isdefined(level.playback[script]))
dev_create_playback(script);
level.playback[script][level.playback[script].size] = playback;
#/
}
dev_print_playback(script)
{
/#
if(!isDefined(level.playback))
assertMsg("Dev function must be called first!");
if(!isdefined(level.playback[script]))
dev_create_playback(script);
println("Script Playback Size: " level.playback[script].size);
for(i=0;i<level.playback[script].size;i )
println("Playback " i ": " level.playback[script][i]);
#/
}
![]() | Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. |
![]() | Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community. |

I was actually writing something like this last night before i ran out of time. This will save me some work
![]() | Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. |
![]() | Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community. |
![]() | Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. |
![]() | Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community. |
