Leigham
-
Posts
322 -
Joined
-
Last visited
-
Days Won
1
Content Type
Profiles
Forums
Articles
Posts posted by Leigham
-
-
might implement a Helo Spawn too :D
-
just need to know if the bodyName variable is the same as arma 2 or ive looked maybe its this EPOCH_deadPlayer_PVS
-
well i had to change it a bit but the random function is working
-
What do you guys think Video Below, there are random locations to each spawn, and it will pick one out of the array at random also classes, you can either pick one in the menu or if you select random it will pick one at random.
Updated Video
-
This is what i have for the addaction the problem is sometimes it shows up sometimes it isnt
waituntil {!alive player ; !isnull (finddisplay 46)}; //Deploy Bike _actionmenu = player addaction [("<t color=""#0074E8"">" + ("Action Menu") +"</t>"),"Scripts\actionmenu\AMExec.sqf","",5,false,true,"",""];
-
im Guessing Spawn_ebike is the file name ?
-
Server File
if(isServer) then { "UDVIC" addPublicVariableEventHandler { private["_veh","_pos","_fuel","_damage","_direction","_searchRadius","_spawnPos"]; _veh = _this select 0; _pos = _this select 1; _pos set[2, 0]; _fuel = if(count _this > 2)then[{_this select 2},{0.15 max (random .35)}]; _damage = if(count _this > 3)then[{_this select 3},{0.35 max (random .75)}]; _direction = if(count _this > 4)then[{_this select 4},{random 360}]; _veh = createVehicle[_veh, _Pos, [], 0, "NO_COLLIDE"]; _veh allowDamage false; _veh setDir _direction; _veh setVectorUp (surfaceNormal (getPos _veh)); _veh call EPOCH_server_setVToken; _veh call EPOCH_server_vehicleInit; _veh setVariable ["UD_vehicle", true]; _veh disableTIEquipment true; _veh lock 2; _veh setFuel _fuel; _veh setDamage _damage; _veh allowDamage true; _veh }; private["_veh","_pos","_fuel","_damage","_direction","_searchRadius","_spawnPos"]; };
and Client
UDVIC = [ cutText [format["Checking if you have Salvage Metal for the Ebike"], "PLAIN DOWN"]; sleep 3; if ("ItemCorrugated" in magazines player) then{ player playActionNow "Medic"; sleep 3; _spawn = "ebike_epoch"; _posplr = [((getPos player) select 0) + 2, ((getPos player) select 1) + 2, 0]; _dirplr = getDir player; _spawnveh = [_spawn,_posplr,1,0,_dirplr] execvm"\ud\fn_deployvic.sqf"; _spwnveh setVariable ["Sarge",1,true]; sleep 3; cutText [format["You've used your Corrugated to build a Ebike."], "PLAIN DOWN"]; } else { SystemChat "You need one Corrugated to build an Ebike"; }; ]; publicVariableserver "UDVIC";
Something like that ?
-
so how would i implement an eventhandler to execute a script ?
-
@kilo, i dont know if its somethnig you did on purpose for the test build but i cant turn debug off otherwise is goes to the server not ready screen with no errors on either rpt
-
How would i go about executing a server file from client EI spawning a vehicle on the server, but from a client side script
-
would it work if i used an ExecVM \ud\deployvic.sqf"; from the file in my mission.pbo
instead of compiling at as a function
-
allowedPreprocessFileExtensions[] = {"sqf"};
sqf is already whitelisted ?
-
Could not load '\ud\scripts'. Extension not listed in allowedPreprocessFileExtensions
im getting this now ? any ideas ?
-
ok im testing that method now, ill let you know how it works out
-
so if i use the prefix x/addons/ud
i would need to call or exec
/x/addons/ud/filename.sqf
-
https://www.dropbox.com/s/uqdugq0288ezksr/epoch.Chernarus.pbo?dl=0
https://www.dropbox.com/s/byx4vhm9zkgc72i/ud.pbo?dl=0
Mission.pbo, with the Script that calls the function, scroll wheel menu
and drag the UD folder into @epochhive\addons
if anyone could take a look would be defianalty worth a beer, ive tried many different filenames/paths, but the fn_init cant find the file
-
http://gyazo.com/e1daf3469f38d2cbf281a5791e1076bc
http://gyazo.com/1ca4c79757d2fd4be9bb77074f2a7eb3
http://gyazo.com/f90177abc0fe4346c067e2c0572e6411
cant seem to get this working, if anyone thinks they can let me know and i will pm you the files
-
-
forgot to say that its loading
19:05:51 D:\TCAFiles\Users\LeighamM\242\@EpochHive\addons\ud.pbo - unknown
but its giving me this
19:20:44 Warning Message: Script scripts\fn_function.sqf not found
even though its in the scripts folder
-
im trying to make an addon pbo, not giving out any hints what for yet, but i have created a function in a config.cpp
class CfgFunctions { class UD { class main { file = "UD"; class Init { //preInit = 1; postInit = 1; }; }; class UD_scripts { file = "UD\scripts"; class function {}; }; }; };
my fn_init
/* Update 16.02.2015 By Leigham */ //Server side addon init.sqf //Options For Admins UD_Debug = True; //Compiling the Function to use in mission.pbo if (isServer) then { UD_fnc_function = compile preprocessFileLineNumbers "\q\addons\UD\scripts\fn_DeployVic.sqf"; }; diag_log "UD INIT: Text Here"; //More to Come
not going to show the file, would give to much away, but is file is fn_function.sqf and its directory is @epochhive\addons\UD\scripts (UD being the pbo)
and im trying to call it from the mission.pbo, i thought as a function i could call it from the mission pbo, if not how could i do this ?
anyhelp would be greatly appreciated and worth a beer, thanks : D
-
Riddlez If its ok with you to Implement this into my actionmenu for release ?Will Send you the files before first release for testing (only admins get the option for base kits)
-
This morning i was finishing up my friends arma 2 server as he wanted ESS and i was thinking about trying to make the same for arma 3 but im running in to a problem at the first hurdle, trying to addaction on the player respawn, i can only get it to show up all the time at the moment how would i go about adding it for one selection and only on respawn,
ive got the options sorted they can choose a spawn, choose a loadout, or choose random for both
-
im working on creating a new function for SEM missions, that on missions where selected will hint to the player that a backup group is on the way to the mission location and im trying to get the leader to track the player that killed the "main" mission leader, how would i get that to happen i mean how would i link the player to be the player that "killed" the leader
-
Im working on updating my menu to be a dialog, with extra options, including messaging players.
There is a preview below, let me get some feedback, the overall look of it isnt finished, and I may add/change it, but the basic functions are in.
- Schrubbdiwupp, Humpabry and ghostfur
- 3
trying to make an addon pbo
in Discussion
Posted
TYVM KILO :D