integerthing = 1; //by the way, comments like this can be made using //, and are ignored by the game.
floatthing = 0.5;
stringthing = "Text and symbols 1234567890";
booleanthing = true; //another thing, almost every line must have a ; at the end or the script won't work. More on that later.
funcMove()
{
self moveY(320, 3);
}
function(arg1, arg2);
someotherstuff()
{
ent function(320, 5);
thing function(320, 5);
}
function(distance, time)
{
ent moveZ(distance, time);
}
function(); //the script will stop at this line and carry out function() before going down to...
thread function(); //this will start function() and carry on to execute 'ent moveZ'
ent moveZ(350, 5);
something()
{
ent = getent("ent","targetname");
ent function();
}
function()
{
self moveZ(150, 5);
}
integerthing = 1; //by the way, comments like this can be made using //, and are ignored by the game.
floatthing = 0.5;
stringthing = "Text and symbols 1234567890";
booleanthing = true; //another thing, almost every line must have a ; at the end or the script won't work. More on that later.
funcMove()
{
self moveY(320, 3);
}
function(arg1, arg2);
someotherstuff()
{
ent function(320, 5);
thing function(320, 5);
}
function(distance, time)
{
ent moveZ(distance, time);
}
function(); //the script will stop at this line and carry out function() before going down to...
thread function(); //this will start function() and carry on to execute 'ent moveZ'
ent moveZ(350, 5);
something()
{
ent = getent("ent","targetname");
ent function();
}
function()
{
self moveZ(150, 5);
}
, you may want to considers saying how the game works and the functions, e.g Each .gsc goes starts with init() then goes to onPlayerConnect, then goes to onPlayerSpawned. Aka Program Flow.
== //Means Equal To.
> //Greater Than.
< //Less Than.
!= //Not Equal To.
&& //And This... Used In Statements.
|| //Or This... Used In Statements.
++ //Up 1.
-- //Down 1.
for(i=0;i<level.player.size;i++)
{
}
Copyright © 2026, NextGenUpdate.
All Rights Reserved.