-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
[ | ||
"Data\\SCRIPTS\\WorkshopObjectRandomizerScript.pex", | ||
"Data\\Scripts\\Source\\User\\WorkshopObjectRandomizerScript.psc" | ||
] |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"Categories" : | ||
[ | ||
"Workshop" | ||
], | ||
"Description" : "Randomizes the scale and rotation of plants placed in the workshop\r\n\r\nLets you plant crops quickly without sacrificing variation\r\n\r\nhttps://github.com/osvein/FO4_PlantRandomizer\r\n", | ||
"Title" : "Plant Randomizer" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
Scriptname WorkshopObjectRandomizerScript extends ObjectReference Const | ||
{Sets random scale and z angle on objects when placed in the workshop} | ||
|
||
float angleMin = 0.0 const | ||
float angleMax = 360.0 const | ||
float scaleMin = 0.8 const | ||
float scaleMax = 1.1 const | ||
|
||
Event OnWorkshopObjectPlaced(ObjectReference akReference) | ||
self.SetAngle(0, 0, Utility.RandomFloat(angleMin, angleMax)) | ||
self.SetScale(Utility.RandomFloat(scaleMin, scaleMax)) | ||
EndEvent |