-
Notifications
You must be signed in to change notification settings - Fork 1
Home
LucaM97 edited this page Sep 24, 2017
·
5 revisions
- create new folder called BDL (keep your mission folder in order!)
- copy and paste one (or more) functions from my repository
- open your init.sqf file and add on the top:
[]execVm "BDL/BDL_earthquake.sqf";
if you want to try it in console just copy and paste:
[player,10,true]spawn BDL_earthquake;
and is the same if you want to use it in a script...
Let me show an example.
Next snippet will open house doors when you shoot it...
//first import my function BDL_openHouseDoors
[]execVm "BDL/BDL_openHouseDoors.sqf"
//next use it in a player event handler...
player addEventHandler ["fired",{
[cursorObject,1]call BDL_openHouseDoors;
}];