View Full Version : relative or direct script path
Aug 31 2009, 08:41
can someone explain to me how correctly specify script path in both//
-relative path(with pbo name???)??
-and direct path(can we request script from folder or another sub folder or from dta folder???)???
Sep 4 2009, 11:43
To address a path within your mission / addon you use no backslash. To address contents outside you use a preceding "\".
Example relative path:
dummy =  execVM "mytest.sqf";
dummy =  execVM "testfolder\mytest.sqf";
This executes scripts within your mission/addon; one in the root dir, the other one in "testfolder".
Example absolute path:
dummy =  execVM "\VFFPSS\VFFPSS.sqf";
If you have my VFFPSS addon installed for example you could call one of its scripts directly from your mission.
"\" is the root directory of all addons including all mod folder addons. You cannot go higher than "\" when addressing game contents.
Sep 6 2009, 13:45
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.