local or level?

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
lizardkid
Windows Zealot
Posts: 3672
Joined: Fri Mar 19, 2004 7:16 pm
Location: Helena MT

local or level?

Post by lizardkid »

whats the difference between a local.xxx variable and a level.xx variable? i've never found this out. :?
Moderator

۞
Abyssus pro sapientia
Olympus pro Ignarus
۞

AND STUFF™ © 2006
User avatar
G3mInI
First Lieutenant
Posts: 187
Joined: Sat Jun 29, 2002 3:49 am

Post by G3mInI »

Predefined object references
============================

1) game
Refers to the unique game object which maintains its state across levels. Only primitive values (integers/floats/strings/vectors) will persist across levels.

2) level
Refers to the unique level object which maintains its state for the duration of a level.

3) local
Refers to the thread executing the current command.

4) parm
Refers to the unique parm object which can be used to pass parameters to new threads.
Note that any use of this variable could be coded "better" by using parameters in the creation of new threads.

5) self
Refers to the object that the thread is processing for. This object is the same for all threads in a group of threads.

6) group
Refers to the object representing the group of threads the thread executing the current command belongs to.


Hope that helps,

G3mInI
lizardkid
Windows Zealot
Posts: 3672
Joined: Fri Mar 19, 2004 7:16 pm
Location: Helena MT

Post by lizardkid »

oh awesome, this is exactly what i need. :D thanks Gemini!
Moderator

۞
Abyssus pro sapientia
Olympus pro Ignarus
۞

AND STUFF™ © 2006
Splaetos
Major General
Posts: 730
Joined: Tue Jan 20, 2004 2:55 pm
Contact:

Post by Splaetos »

LOOK at the tutorials and manuals provided, they are a great resource and you only clog the forums with useless questions when you ask about an obvious detail.

http://map.moh-central.net/t.php?id=82#predefined_obj

sorry lizard =p I just couldnt resist =)
When I am king, you will be first against the wall~
Image
lizardkid
Windows Zealot
Posts: 3672
Joined: Fri Mar 19, 2004 7:16 pm
Location: Helena MT

Post by lizardkid »

:lol: i know. i was a bit irritated at some of the noobs when i wrote that. i was sure i combed that page a million bajillion gronnellion times! (pun, anyone?)

ah well, it's answered. :lol:
Moderator

۞
Abyssus pro sapientia
Olympus pro Ignarus
۞

AND STUFF™ © 2006
M&M
General
Posts: 1427
Joined: Sun Sep 14, 2003 1:03 am
Location: egypt
Contact:

Post by M&M »

lizardkid in his sig wrote:btw this is directed at no one, jsut simple things that tick me off personally.

LOOK at the tutorials and manuals provided, they are a great resource and you only clog the forums with useless questions when you ask about an obvious detail.

READ THE FORUM DESCRIPTION, help wanted/offered is NOT for mapping/scripting whatever questions. use the correct forum.

SEARCH MAN SEARCH! use the search button. we all get tired of answering repetative questions.
nice sig .
u should use what it says :P

im very sure that omniscient (later changed name to kaioty,who then later disappeared) posted the same question some months ago
Image
Post Reply