Newbie Spellweaver
- Joined
- Dec 25, 2014
- Messages
- 12
- Reaction score
- 0
Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!
Join Today!amended spawn helicrashesYou must be registered to see links
You must be registered to see links
init_SpawnHeliCrash = compile preprocessFileLineNumbers "Scripts\SpawnHeliCrash.sqf";
Call init_SpawnHeliCrash;
@ padawantoni
Example Installation (from description in the file):
1. Copy SpawnHeliCrash.sqf in \MPMissions\dayzea.ChernarusPlus\Scripts\
2. Add code in \MpMissions\dayzea.ChernarusPlus\init.sqf:
3. Make "dayzea.ChernarusPlus.pbo" and start server.Code:init_SpawnHeliCrash = compile preprocessFileLineNumbers "Scripts\SpawnHeliCrash.sqf"; Call init_SpawnHeliCrash;
Doing this way both folders "\DZ\server\_" and "\MPMissions\dayzea.ChernarusPlus\Scripts" will be loaded?
Only in \MPMissions\dayzea.ChernarusPlus\Scripts
_agent = createAgent [_mySkin, _pos, [], 0, "NONE"];
@ gummi666
Try to add classes for actions in config, example:
On server-side, use file \DZ\server\config.cpp (or appr. config.bin), or \DZ\server\cfg\cfgObjectActions\config.cpp (*.bin)
In definition of class cfgObjectActions find desire subclass (ex., WellBlue eq. "pumpa"), and add classes for actions
For other classes/other action - code is written similarly (of course, using the required values and options in the properties, especially in "condition" and "statement").Code:// existing definitions class cfgObjectActions { // existing definitions class WellBlue { model = "dz\buildings\misc\pumpa.p3d"; class DrinkWater { displayName = "Drink Water"; priority = 0.100000; showWindow = 1; hideOnUse = 1; condition = "true"; statement = "_owner playAction 'drinkWell';[_owner,'RiverWater'] call player_fnc_processStomach;[_owner,'I drink some water from the well','colorAction'] call fnc_playerMessage;"; }; class FillBottle { displayName = "Fill Bottle"; priority = 0.100000; showWindow = 1; hideOnUse = 1; condition = "_inHands isKindOf 'BottleBase'"; statement = "[this,_inHands,_owner,_name] spawn player_fillBottle;"; }; }; // existing definitions };
Note, that there is no need to distribute this code to the client side - action of objects are processed only on the server side.
Take files from addon "server_data.pbo" and put them in folder "\DZ\server" on server-side.i dont have a \DZ\server\config.cpp
Thank you!Take files from addon "server_data.pbo" and put them in folder "\DZ\server" on server-side.
2All
Unzip content of this archive to \DZ\server\scripts\init\ folder on server-side.
This is edited version of scripts for functions init_spawnWildAnimals and init_spawnZombies