Created an object after missionstart, owner is 0. Everything I want to check (vehicle player etc) returns 0. Even owner player returns 0. {F26687}
Description
Description
Details
Details
- Legacy ID
- 1522025508
- Severity
- None
- Resolution
- No Bug
- Reproducibility
- Always
- Category
- Scripting
Event Timeline
Comment Actions
On server machine, returns the ID of the client where the object is local. Otherwise returns 0.
You can use it on the server only.
Comment Actions
Usage of owner is for server executed scripting. The server is the only one that can return a proper owner id for the player (s). Try it in a server executed script and add a diag_log line to produce good working result
Comment Actions
As was mentioned before, works only on server (think it even has a fancy serverExec icon on BIKI page)