Update relationships.md

removed duplicate descrption for 'find first target of a relationship' and fixed the incorrect typescript (I hope) example of getting the parent of an entity
This commit is contained in:
Saber 2025-02-03 23:48:42 +04:00 committed by GitHub
parent f91ed9f24b
commit 26a58ddb0c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -47,22 +47,10 @@ Get parent for entity
world:parent(bob)
```
```typescript [typescript]
world.parent(bob, pair(Eats, jecs.Wildcard)
world.parent(bob)
```
:::
Find first target of a relationship for entity
:::code-group
```luau [luau]
world:target(bob, Eats)
```
```typescript [typescript]
world.target(bob, Eats)
```
:::
Find first target of a relationship for entity
:::code-group