How Do I Create An Sqf Using This Code?

Posts 113 of 13 · Page 1 of 1
How Do I Create An Sqf Using This Code?
testIndex = _this select 1;
_thePlayer = _this select 2;

// foreach loop
{
if (name _x == _thePlayer) then
{
_x switchCamera "Internal";
selectPlayer _x;
player remoteControl _x;
_rcntrl = true;
};
} foreach playableUnits;
Just put all of that in a text file and change the ending or save it as a .sqf
thats it.
Quote Originally Posted by Jim Morrison View Post
Just put all of that in a text file and change the ending or save it as a .sqf
thats it.
Hey it didn't work for both of my codes I have a namalsk spawn box and the player control but they arent working
Quote Originally Posted by rGAERGAErgergergerg View Post
Hey it didn't work for both of my codes I have a namalsk spawn box and the player control but they arent working
You have to change the file type in the dropdown menu from ".txt" to "All Files". Then save as _______.sqf
Quote Originally Posted by xLithium View Post
You have to change the file type in the dropdown menu from ".txt" to "All Files". Then save as _______.sqf
what this guy said ^
Quote Originally Posted by darkangel1 View Post
what this guy said ^
Yeah you can do that to if changing the ending doesn't work.
Quote Originally Posted by Jim Morrison View Post
Yeah you can do that to if changing the ending doesn't work.
Changing just the ending WON'T work, it just saves it as Script.sqf.txt. (Script used as an example).

Changing file type in dropdown menu was the only way I could add scripts to the menu I used to use.
Quote Originally Posted by xLithium View Post
You have to change the file type in the dropdown menu from ".txt" to "All Files". Then save as _______.sqf
Both aren't working still could one of you test it? see if its just me?
Quote Originally Posted by rGAERGAErgergergerg View Post
Both aren't working still could one of you test it? see if its just me?
I took your post and turned it into a .sqf for you. Tell me if it works for you now, I don't have a working menu for .sqf's at this time.

Can't seem to find how to attach something, PM me your skype info and I'll send you a link with AV scans as well.
The codes maybe for different menu's, if I was you I would just download a menu that had an item menu where you can spawn weapons in from there, take m0nkey menu for example, its weapon menu adds the namalsk gear to it when you are on that map hope i helped
Posts 113 of 13 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Need help?