SmartlyDressedGames / Unturned-3.x-Community

Community portion of the Unturned-3.x repo. If you have access to the source code you can find it here:
https://github.com/SmartlyDressedGames/Unturned-3.x/
83 stars 17 forks source link

The script cannot be run on the prefabricated body "Projectile". #4434

Closed hyjhkt closed 3 weeks ago

hyjhkt commented 3 weeks ago

The following events take effect in single player mode, but not on the server. The server has enabled "UnityEvents": {"Allow-Server-Messages": true, "Allow-Server-Commands": true, "Allow-Client-Messages": true, "Allow-Client-Commands": true In the first image, the object under 'Projectile' has an ActivationEventHook. However, when the 'Grenade Launcher' hits' Projectile ', the ActivationEventHook does not take effect. After the grenade launcher fired a Projectile, other prefabricated items used NpcGlobalEventMessenger to send events, but the NpcGlobalEventHook on the Projectile did not receive any events

hyjhkt commented 3 weeks ago

R@5 1S7L%}}~5HVNGPU6M8L

hyjhkt commented 3 weeks ago

7A{@)MC505KS$EZZA4LOM 6 03E(D}))3I9NVV5}5KTVUAY The script on the item prefabricated body takes effect on the server

SDGNelson commented 3 weeks ago

It sounds/appears this is more-so about the particular setup, whereas this repository is intended for bugs/crashes/issues/etc in the game rather than modding assistance, sorry.