Our forum is going offline at the end of July. We suggest moving all discussions to Discord. Exile will stay on Steam. Thanks for a great time!
Jump to content
Question
3 answers to this question
Create an account or sign in to comment
You need to be a member in order to leave a comment
Sign in
Already have an account? Sign in here.
Sign In Now
I'm just looking into the basics of SQF coding so I can analyze some scripts. I keep seeing the
_this
variable called, but never see it initialized. Is this a special variable, or what does it typically refer to?
Example:
/******************************************************************** * sneak_server * file: sneak_server\code\SneakCustoms_change_skin.sqf * Author: Sneak * [email protected] * This extension is licensed under the Arma Public Licence ********************************************************************/ private ["_originalTextures", "_paid", "_playerMoney", "_skinPrice", "_tmp", "_currentTimestamp", "_expiringDate", "_currentVehicleNetId", "_sessionId", "_player", "_skinClass", "_currentVehicle", "_currentVehicleId", "_missionPath", "_jpg", "_page", "_pageSize","_currentVehicleIdAndSkin", "_found", "_skinTextures", "_groupsActive", "_liteVersion", "_validUIDs", "_dbEntry"]; diag_log format ["[SNEAK_CUSTOMS]change_skin called"]; _sessionId = _this select 0; _currentVehicleNetId = (_this select 1); _currentVehicle = objectFromNetId _currentVehicleNetId; _skinClass = _this select 2; _playerNetId = _this select 3; _skinPrice = _this select 4; _originalTextures = _this select 5; _availableForGroup = _this select 6; _player = objectFromNetId _playerNetId; _paid = false; _playerMoney = _player getVariable ["ExileMoney", 0];
I've been reading the BI scripting pages but would welcome any better recommendations on sqf scripting info.
Share this post
Link to post
Share on other sites