Post: (Tutorial) Basic scripting GSC : Variables.
04-15-2012, 12:10 PM #1
KingcreekS
NOTHING IS IMPOSSIBL
(adsbygoogle = window.adsbygoogle || []).push({}); Hello ngu,
This will be Variables , then i will make another thread with maths of the script and....

So 1st what is a variable?

    A variable is something that is used in several ways, but in all cases they are used to store some data for the duration of the game.


With what i can make a variable?

    You can make a variable with :
ntegers, floats, entities, strings, arrays and booleans...


A simple variable:

    variable = data;

This variable can be used in the current function and any function that passes it as an argument, or is called on it (so it'd be used as 'self'Winky Winky.


Variables can be global (which can be used in all threads without needing to be called) by using the:

    level.variable = data;


or they can be assigned to entities individually:

    entity.variable = data;

This is like player.health and level.teamBased (boolean).

This tutorial is finish.

I hope you enjoy it,
Bloodfocus.
(adsbygoogle = window.adsbygoogle || []).push({});
04-15-2012, 01:14 PM #2
Correy
I'm the Original
a variable is like a box which stores values.

thats basically the best way to some a variable up

The following user thanked Correy for this useful post:

Harry
04-16-2012, 12:09 AM #3
KingcreekS
NOTHING IS IMPOSSIBL
Yes i know that thankz

The following user groaned KingcreekS for this awful post:

Jeremy
04-16-2012, 05:33 PM #4
Cause I haven't seen one of these before >_>
04-16-2012, 05:47 PM #5
IVI40A3Fusionz
Former Gaming Squad Member
Why are people making GSC scripting tutorials when most people just go and look at KBrizzles thread over a Se7ensins? It's much more detailed and gives very good examples etc.

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo