Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Calling a sub that's server side from the client? possible?


kyle9217
 Share

Recommended Posts

Kyle there are literally hundreds of example in eclipse itself how to do this.

If you take note eclipse currenty uses a number of 'packets' to send data to and from the client and server, these packets are linked to call out functions to the process the data the packets are sending. It sounds slightly complicated but its really quite simple.

Fire up your client and search around for something like -

```
HandleDataSub(SInGame) = GetAddress(AddressOf HandleInGame)
```

Notice the two key words there, the **SInGame** and **HandleInGame**

That means that when the client(for this example) receives a packet from the server addressing itself as '**SInGame**' it should carry out the function **HandleInGame.**

If you copy, paste and modify all instances of these two functions for both the server and the client (they will be slightly different in search) then you can call functions just like that!

- zero.
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...