Skip to content

Commit

Permalink
Update arma-reforger.md
Browse files Browse the repository at this point in the history
  • Loading branch information
nomisum authored Dec 1, 2023
1 parent 9a4ab8c commit 8417d35
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions docs/bastelstube/arma-reforger.md
Original file line number Diff line number Diff line change
Expand Up @@ -187,3 +187,15 @@ foreach (SCR_MapMarkerBase staticMarker : staticMarkers)
```c#
float wy = GetWorld().GetSurfaceY(x, z);
```

## Attaching Stuff to other Stuff
// Arma3 eq: attachTo
```c#
//!Add Entity to hierarchy. Pivot is pivot index, or -1 for center of parent.
// The child has to have the hierarchy component. Only one requires hierarchy component.
proto external int AddChild(notnull IEntity child, TNodeId pivot, EAddChildFlags flags = EAddChildFlags.AUTO_TRANSFORM);

proto external void RemoveChild(notnull IEntity child, bool keepTransform = false);

```

0 comments on commit 8417d35

Please sign in to comment.