Event
Event in Highrise signifies key moments or changes in the game environment, facilitating dynamic and responsive gameplay. It provides a structured way to define, trigger, and respond to in-game occurrences, such as a player joining or leaving. Events can be triggered on specific clients, all clients, or on the server, with corresponding actions attached through connections to functions. This mechanism is pivotal for creating interactive and adaptive game experiences.
Properties
Identifies the event, aiding in differentiation and specific event handling.
Methods
Activates the event for a particular client, enabling targeted notifications or actions.
Returns
No return value, action is triggered client-side.
Broadcasts the event to all connected clients, useful for global notifications or updates.
Returns
No return value, action impacts all clients.
Triggers the event on the server side, often leading to updates in game state or other server-managed data.
Returns
No return value, action takes place on the server.
Establishes a linkage between the event and a specific response function, ensuring automatic execution upon event triggering.
Returns
An EventConnection instance denoting the connection between the event and its response function.