docs: Attach-Parameter gegen die Native-Doku korrigiert
Lint / Lint Resource (push) Has been cancelled
Lint / Lint Resource (push) Has been cancelled
Der 15. Parameter heisst syncRot, nicht fixedRot. useSoftPinning=false ist laut Doku korrekt fuer eine Attachment, die sich nicht loesen soll. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
@@ -35,8 +35,9 @@ Zuerst, weil kleinster Aufwand, echter Bug, und die Taschenlampe dieselbe
|
||||
Attach-Logik nutzt.
|
||||
|
||||
- [x] `attachGear()` auf harte Attachment umstellen: `useSoftPinning = false`,
|
||||
`p9 = false`, `fixedRot = true` — ausgelagert in einen `attachProp()`-Helper,
|
||||
den Phase 5 für die Lampe mitbenutzt
|
||||
`p9 = false`, `syncRot = true` — ausgelagert in einen `attachProp()`-Helper,
|
||||
den Phase 5 für die Lampe mitbenutzt. Laut Native-Doku heißt `useSoftPinning`
|
||||
false: *"attached entity will not detach when fixed"* — genau das wollen wir
|
||||
- [x] `isGearIntact()` Helper: `DoesEntityExist` + `GetEntityAttachedTo(...) == cache.ped`
|
||||
für beide Props
|
||||
- [x] Watchdog-Thread (`gearWatchdogIntervalMs`, default 1000 ms) solange
|
||||
|
||||
+2
-2
@@ -50,11 +50,11 @@ local function attachProp(model, bone, offset, rotation)
|
||||
offset.x, offset.y, offset.z,
|
||||
rotation.x, rotation.y, rotation.z,
|
||||
false, -- p9
|
||||
false, -- useSoftPinning
|
||||
false, -- useSoftPinning ("if set to false attached entity will not detach when fixed")
|
||||
false, -- collision
|
||||
false, -- isPed
|
||||
2, -- rotationOrder
|
||||
true) -- fixedRot
|
||||
true) -- syncRot
|
||||
|
||||
SetModelAsNoLongerNeeded(model)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user