Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chopping - Add tree destruction to tree removal action #140

Open
wants to merge 5 commits into
base: experimental
Choose a base branch
from

Conversation

Kexanone
Copy link
Member

When merged this pull request will:

  • Make the tree removal action destroy the tree first before deleting it
  • Handle passing null to ACE_RequestDeleteEntity

@Kexanone Kexanone added kind/feature Release Notes: **ADDED:** 1.3.0.x Arma Reforger version 1.3.0.x labels Dec 18, 2024
@Kexanone Kexanone added this to the 1.3.0 milestone Dec 18, 2024
Base automatically changed from core/fixes to experimental December 21, 2024 23:41
Copy link
Member

@veteran29 veteran29 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

vector transform[4];
pUserEntity.GetWorldTransform(transform);
userCtrl.ACE_RequestDestroyEntity(plant, EDamageType.MELEE, transform);
GetGame().GetCallqueue().CallLater(userCtrl.ACE_RequestDeleteEntity, DELETE_FALLING_TREE_DELAY_MS, false, plant);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One thing to consider is that the tree won't be deleted if client disconnects before this happens. Not a big issue.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point, I should make a request to the server instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1.3.0.x Arma Reforger version 1.3.0.x kind/feature Release Notes: **ADDED:**
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants