Prospero 1 Posted October 28, 2002 Hi all, I was wondering if the following (or something like it) is possible - in order to place an object (which we'll call myobject) into the OFP world: 1) Make a custom function called dropobject.sqf: ---------- private {"_x","_y","_z"}; _x = _this select 0; _y = _this select 1; _z = _this select 2; myobject setpos [_x, _y, _z]; ---------- 2) In init.sqs, load the function into a global variable, like this: Dropobject = preprocessfile "dropobject.sqf" 3) Call the function, like this: drop ["empty", "", "Billboard", 1, 0, [0, 3, 1], [0, 0, 0], 0, 1, 0.78431375, 0, [0, 0], [[0,0,0,1], [0,0,0,1]], [0], 0, 0, "", call Dropobject, vehicle player] The reason for doing this would be to speed up the Drop command by avoiding file access, as it is often very useful to be able to employ the Drop command to place an invisible "tag" relative to a vehicle (in its body coordinate frame) onto which one can then immediately setPos a "real" object. Prospero Share this post Link to post Share on other sites