loading...
Join the ludiloom Public Alpha Test and help us change the game-making game...
Ludiloom API
last updated on 2009, May 22nd
| Base Concepts | Scene Objects | Data Interface | Gui Overlays | |||
|
Arena Object ObjectTemplate Presence PresenceTemplate RuleBook System |
BillBoard Camera Effect HighlightDecal Light Material MeshDecal |
Model Plane River Road Sound StaticFlora Terrain |
HashTable InterModel Matrix MediaItem Vector |
Button Checkbox CodeEditbox ComboBox Editbox Listbox MenuBar MenuItem |
MenuPopup MultiColumn MultilineEditbox ProgressBar RadioButton ScrollBar ScrollPane SliderBar |
Spinner StaticImage StaticText TabPane ToggleButton Tree Window |
System
print
nil print (string obj)
A class that access some general variables of the Peer.
| Method Summary | |
nil | castRayAllTargets (string name, number posx, number posy, number posz, dirx Coordinate, diry Coordinate, dirz Coordinate) |
nil | castRayClosestTarget (string name, posx Coordinate, posy Coordinate, posz Coordinate, dirx Coordinate, diry Coordinate, dirz Coordinate) |
representation, number, number, number | closeupCamera () |
number, number, number, number, number, number | closeupCamera () |
nil | disconnect () |
nil | exit () |
login | getLogin () |
Object | getObject (string objectID) |
array{Object} | getObjects () |
array{Object} | getObjectsByName (string name) |
array{Object} | getObjectsByTemplate (string class) |
Permission | getPermissionLevel () |
representation | getRepresentation (string representationID) |
number, number | getResolution () |
number | getTime () |
userKey | getUserKey () |
boolean | hasObject (string objectID) |
boolean | hasRepresentation (string representationID) |
nil | isLocalEvent () |
nil | print (string obj) |
nil | removeObject (string objectID) |
nil | removeRepresentation (string representationID) |
nil | requestLoadPresence (string templateName) |
number, number, number | setCameraPosition () |
nil | setDefaultFont () |
nil | setDefaultMouseCursor () |
nil | setMouseCursorVisible (boolean visible) |
nil | setSoundVolume (number volume) |
nil | sleep (number milliseconds) |
| Method Detail |
castRayAllTargets
nil castRayAllTargets (string name, number posx, number posy, number posz, dirx Coordinate, diry Coordinate, dirz Coordinate)- Casts a ray which will trigger the corresponding listener in every target it hits
- Parameters:
string name- Name of the raynumber posx- Coordinate X from where the ray is castnumber posy- Coordinate Y from where the ray is castnumber posz- Coordinate Z from where the ray is castdirx Coordinate- X of the direction to where the ray is castdiry Coordinate- Y of the direction to where the ray is castdirz Coordinate- Z of the direction to where the ray is cast
castRayClosestTarget
nil castRayClosestTarget (string name, posx Coordinate, posy Coordinate, posz Coordinate, dirx Coordinate, diry Coordinate, dirz Coordinate)- Casts a ray that will trigger the listener only on the closest target
- Parameters:
string name- Name of the rayposx Coordinate- X from where the ray is castposy Coordinate- Y from where the ray is castposz Coordinate- Z from where the ray is castdirx Coordinate- X of the direction to where the ray is castdiry Coordinate- Y of the direction to where the ray is castdirz Coordinate- Z of the direction to where the ray is cast
closeupCamera
representation, number, number, number closeupCamera ()- Closes the camera up to 'rep'.
- Returns:
representation- Must be a representation of type light, model, plane, billboard or effect.number- Distance of the camera to the representation.number- Speed of the camera.number- Time the camera stay on the representation.
closeupCamera
number, number, number, number, number, number closeupCamera ()- Closes the camera up to point (x,y,z).
- Returns:
number- X coordinate of the point the camera is closing up.number- Y coordinate of the point the camera is closing up.number- Z coordinate of the point the camera is closing up.number- Distance of the camera to the representation.number- Speed of the camera.number- Time the camera stay on the point.
disconnect
nil disconnect ()- Disconnects from the current arena or world.
exit
nil exit ()- Closes and exits the Peer.
getLogin
login getLogin ()- Returns the user login.
- Returns:
login- User Login.
getObject
Object getObject (string objectID)- Returns the object with the specified object ID.
- Parameters:
string objectID- Object ID.
- Returns:
Object- Object with the specified object ID.
getObjects
array{Object} getObjects ()- Returns an array containing the objects in the arena.
- Returns:
array{Object}- Array containing the objects in the arena.
getObjectsByName
array{Object} getObjectsByName (string name)- Returns an array containing the objects with the specified name.
- Parameters:
string name- Name of the objects to return.
- Returns:
array{Object}- Array containing the objects with the specified name.
getObjectsByTemplate
array{Object} getObjectsByTemplate (string class)- Returns an array containing the objects with the specified type.
- Parameters:
string class- Class name of the objects to return.
- Returns:
array{Object}- Array containing the objects with the specified type.
getPermissionLevel
Permission getPermissionLevel ()- Returns the user permission level.
- Returns:
Permission- level.
getRepresentation
representation getRepresentation (string representationID)- Returns the representation with the specified representation ID.
- Parameters:
string representationID- Representation ID.
- Returns:
representation- Representation with the specified representation ID.
getResolution
number, number getResolution ()- The current screen resolution of the player.
- Returns:
number- Width in number os pixels.number- Height in number os pixels.
getTime
number getTime ()- Returns the current time.
- Returns:
number- The current time.
getUserKey
userKey getUserKey ()- Returns the user UserKey.
- Returns:
userKey- User Key.
hasObject
boolean hasObject (string objectID)- Return 'true' if the arena contains an object with the specified object ID, otherwise 'fase'.
- Parameters:
string objectID- Object ID.
- Returns:
boolean- 'True' if the arena contains an object with the specified object ID, otherwise 'fase'.
hasRepresentation
boolean hasRepresentation (string representationID)- Return 'true' if the arena contains an representation with the specified representation ID, otherwise 'fase'.
- Parameters:
string representationID- Representation ID.
- Returns:
boolean- 'True' if the arena contains an representation with the specified representation ID, otherwise 'fase'.
isLocalEvent
nil isLocalEvent ()- Event was generated by local GPi.
- Prints the object data in the console.
- Parameters:
string obj- Print Object to be printed in the console.
removeObject
nil removeObject (string objectID)- Removes the object with the specified ID.
- Parameters:
string objectID- ID of the object to remove.
removeRepresentation
nil removeRepresentation (string representationID)- Removes the representation with the specified ID.
- Parameters:
string representationID- ID of the representation to remove.
requestLoadPresence
nil requestLoadPresence (string templateName)- Request Load Presence.
- Parameters:
string templateName- Name of the presence template.
setCameraPosition
number, number, number setCameraPosition ()- Positions the camera in point (x,y,z).
- Returns:
number- X coordinate of the camera's new point.number- Y coordinate of the camera's new point.number- Z coordinate of the camera's new point.
setDefaultFont
nil setDefaultFont ()- Sets the default font.
setDefaultMouseCursor
nil setDefaultMouseCursor ()- Sets the default mouse cursor.
setMouseCursorVisible
nil setMouseCursorVisible (boolean visible)- Sets the default mouse cursor.
- Parameters:
boolean visible- Whether the cursor is visible or not.
setSoundVolume
nil setSoundVolume (number volume)- Changes the main sound volume.
- Parameters:
number volume- Sound volume, between 0 and 1.
sleep
nil sleep (number milliseconds)- Sleeps the execution of the script for a given amount of time in milliseconds.
- Parameters:
number milliseconds- Number of milliseconds to sleep.

