onDestroyAction (event)
Fires when an object destruction request is received.
Syntax
- (void)onDestroyAction:(long long)connectionId :(NSString*)uniqueIdentifier :(int)objectType :(int)objectState :(int*)remove;
func onDestroyAction(_ connectionId: Int64, _ uniqueIdentifier: String, _ objectType: Int32, _ objectState: Int32, _ remove: inout Int32)
Remarks
The class fires this event when it receives a request from the client to destroy and existing object. Set Remove to true to proceed with the destruction, or to false to reject the request.