![]() ![]() Scripts only lose the contents of memory when reset, which they might be scripted to do on_rez (which happens when attached from inventory), or explicitly when attached, but they certainly don't need to be, so they can retain memory more or less indefinitely. Is setting up a external server /database still the most reliable option ? How do they do that? We can't write into a notecard so I assume the data is kept somewhere in memory. And if i detach and re-attach the hud, doesn't it reset it's memory? ![]() when the dataserver event is returning the data requested.I saw a few huds that store data, user settings. this value is equal to the first parameter of the dataserver event Stores the request identifyer (return value of llRequestInventoryData) String LANDMARK_NAME = "**landmark name here**" This landmark must be in the same object as the script. this script is in to the landmark defined by LANDMARK_NAME. This script gets the distance from the object Note: This function delays the script for 1 second.įor a another example using this function see: llMapDestination This position is in region local coordinates (that means it's the distance from the region corner) so to convert it into a global position, just add the result of llGetRegionCorner. The only request currently implemented is to request data from landmarks, where the data returned is in the form "" which can be directly cast to a vector. When data is available, the dataserver event will be raised with the key returned from this function in the requested parameter. Requests data from object inventory item name. Partial list of simulators: SimulatorNames. LlSay ( 0, "Ahern's position: " + data ) Is desired to find the global position of the current sim, llGetRegionCorner would be a wiser and more efficient choice.ĪhernStatusQuery = llRequestSimulatorData ( "ahern", DATA_SIM_STATUS ) ĪhernPosQuery = llRequestSimulatorData ( "ahern", DATA_SIM_POS ) Sim other than the one in which the script is currently running. To determine the sim's corner is only necessary if data is needed for a Simulator status unknown or unknown simulator nameĭATA_SIM_STATUS returns the string "unknown" when querying for a nonexistant sim while DATA_SIM_POS and DATA_SIM_RATING silently fail. Returns a string, either " PG", " MATURE" or " UNKNOWN"ĭata returned from DATA_SIM_STATUS request Returns a vector specifying the simulator's global position. This function delays the script for 1 second. That no sim matches the case as specified, it makes a frequently bad On why this happens, but one assumes that when the dataserver finds ![]() Will return information on the sim "Heaton". Sometimes will return data for a similarly-named sim if the suppliedĬase doesn't match the intended sim's actual name.įor example, specifying " Heaton" for simulator will result in information about the sim "Heaven", while specifying " heaven" The sim name is usually not case-sensitive, but Returns a dataserver query ID and triggers the dataserver event Requests data about the sim with the name simulator. Key llRequestSimulatorData( string simulator, integer data)
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |