Home
Intel Depot
Editors Depot
Missions Depot
Addons Depot
Forum
Home
Help
Search
Login
Register
OFPEC Forum
»
Editors Depot - Mission Editing and Scripting
»
OFP - Editing/Scripting General
(Moderators:
h-
,
savedbygrace
,
Gruntage
) »
define _x as private?
« previous
next »
Send this topic
Print
Pages: [
1
]
Go Down
Author
Topic: define _x as private? (Read 827 times)
0 Members and 2 Guests are viewing this topic.
.pablo.
Former Staff
When in doubt, empty the magazine.
define _x as private?
«
on:
25 Jul 2003, 20:12:49 »
if im writing a function where i use _x in a foreach command, do i still need to define it as a private variable? (or is it automatically defined)
Logged
deaddog
Guest
Re:define _x as private?
«
Reply #1 on:
25 Jul 2003, 20:32:48 »
The _x in a foreach command has "local" scope. You can have a _x variable in the other part of your script but it will not be affected by the _x inside the foreach command.
Logged
.pablo.
Former Staff
When in doubt, empty the magazine.
Re:define _x as private?
«
Reply #2 on:
25 Jul 2003, 20:35:13 »
so that means i don't have to define it?
Logged
deaddog
Guest
Re:define _x as private?
«
Reply #3 on:
25 Jul 2003, 21:04:32 »
that's correct
Logged
.pablo.
Former Staff
When in doubt, empty the magazine.
Re:define _x as private?
«
Reply #4 on:
25 Jul 2003, 21:08:17 »
thx for the help!
«
Last Edit: 26 Jul 2003, 00:39:07 by pablo_m123
»
Logged
Send this topic
Print
Pages: [
1
]
Go Up
« previous
next »
OFPEC Forum
»
Editors Depot - Mission Editing and Scripting
»
OFP - Editing/Scripting General
(Moderators:
h-
,
savedbygrace
,
Gruntage
) »
define _x as private?
Top of page