Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
player:SetFortPoints( int )
, Sets the player's fort points to a specified value.Some of the additions below need more testing
buildable:IsBuilt()
Boolean, returns true if the buildable is built.buildable:Detonate()
Detonates the buildable.-- NEEDS MORE TESTING
doesn't leave gibs, and even the explosion isn't visible
buildable:RemoveQuietly()
Removes the buildable quietly.buildable:IsSabotaged()
Boolean, returns true if the buildable is sabotagedbuildable:IsMaliciouslySabotaged()
Boolean, returns true if the buildable is maliciously sabotaged.buildable:GetSaboteur()
Returns the player who sabotaged the buildable.buildable:Sabotage( player )
Sabotages the buildable.-- NEEDS MORE TESTING
sg behaves weirdly, doesn't change team and starts "teamkilling" the player
buildable:MaliciouslySabotage( player )
Maliciously sabotages the buildable-- NEEDS MORE TESTING
sg behaves weirdly, doesn't change team and starts "teamkilling" the player
buildable:RemoveSaboteur( bool )
Removes the saboteur from the buildable, passing a Boolean specifies if the notification should be suppressed or not.-- NEEDS MORE TESTING
sg sometimes still continues to "teamkill" the player for a while even after removing saboteur
buildabe:CanSabotage()
Boolean, returns true if the buildable can be sabotaged.some random changes :P
(edit - created a function for
builable:SetSaboteur()
yet forgot to define it inff_lualib_buildables
, my bad)