OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: THobson on 30 Apr 2005, 09:50:01

Title: Which Flag?
Post by: THobson on 30 Apr 2005, 09:50:01
I have many flagpoles but  only two textures.  The flagpoles change texture under certain conditions.   Is there a way I can check which texture is on a particular flagpole without using global variables to keep track of every change?

I thought the command flag would help me but it returns the flagpole not the texture.
Title: Re:Which Flag?
Post by: dmakatra on 30 Apr 2005, 10:06:47
I don't think so but I'd recomend going for arrays instead of global variables. Arrays are no doubt one of the most powerful things you can use in OFP.

:beat: *Gets Shot* :beat:
Title: Re:Which Flag?
Post by: THobson on 30 Apr 2005, 17:31:27
Thanks - that's what I eventually did do.  It would have been really ugly without an array.
Title: Re:Which Flag?
Post by: dmakatra on 30 Apr 2005, 17:39:18
Just solve the thread man.

:beat: *Gets Shot* :beat:
Title: Re:Which Flag?
Post by: THobson on 30 Apr 2005, 17:52:30
Hang on.  It is only you and me that think we can't detect the texture of a flag.  I was planning to wait a while to see if anyone else had a solution.
Title: Re:Which Flag?
Post by: dmakatra on 30 Apr 2005, 17:59:12
Grandpa Noon gives me a quarter for every thread I convince people to solve. :(

:beat: *Gets Shot* :beat:

EDIT: [size=20]3000 POSTS, SUCKERS![/size] ;D
Title: Re:Which Flag?
Post by: THobson on 30 Apr 2005, 18:17:05
Of which 2864.97 are moaning about people not solcing threads
Title: Re:Which Flag?
Post by: Sui on 03 May 2005, 04:07:13
/me uses his admin hax to halve Armty's post count

;)
Title: Re:Which Flag?
Post by: THobson on 03 May 2005, 07:43:21
I think that's an indication it is time to solve this thread