PDA

View Full Version : relative or direct script path



nikita320106
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???)???

VictorFarbau
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 = [0] execVM "mytest.sqf";
dummy = [0] 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 = [0] 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.

Cheers,
VictorFarbau

nikita320106
Sep 6 2009, 13:45
thanx alot)