-
2nd December 2014, 16:04
#1
Cod4 - a few ideas i need confirming
Hello, i'm new here but i've had a minor scripting background with call of duty 4, I was wondering if you would help me with a few things i get stuck on?
I've been creating a mod for cod4 for awhile now and I want to expand on my scripting knowledge, i was wondering if the following are possible and how I would tackle them. I don't need spoon feeding; just help pointing in the right direction, as I do want to learn how these work correctly.
1. Is it possible to write to a file (with or without developer) a series of scripts and read them from another script? for example, write from in-game to a gsc in the mod.ff (or iwd etc..)
Ive tried openfile() but as far as i'm aware it can only print text, not write a script. is there an alternative method?
2. how would you create a similar function which uses a dvar like ui_promotion to open a popup menu once the game has ended? i'm trying to do the same but having no luck using level.hasEnded and such.
If you could help me with those i'm greatly appreciated!
-
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules