| Blockland Forums > Modification Help |
| Which function can I package to detect when a player was ghosted? |
| << < (2/2) |
| Bauklotz:
--- Quote from: Amade on July 05, 2010, 05:05:25 PM ---No --- End quote --- Is there a way to do this client-sided? |
| Amade:
--- Quote from: Bauklotz on July 06, 2010, 09:28:56 AM ---Is there a way to do this client-sided? --- End quote --- Not without server-sided coding. |
| Chrono:
1. Package Gameconnection::setFinishedInitialGhost(%this,%val) and check if %val is 1 if you want to know exactly when they finished ghosting. To check if they have ghosted at any point, you can use .getFinishedInitialGhost() This is server sided only. 2. If it's client sided, you could get the shapename from a player object and compare it to the f2 list to see if the name has a player object. However, that requires looping through a huge group of objects which will cause quite some lag. |
| Navigation |
| Message Index |
| Previous page |