Menu

Prop_Weighted_Cube

Chase Rayment

Prop_Weighted_Cube is a representation of the Portal 2 prop_weighted_cube entity.

Class definition:

Prop_Weighted_Cube(x, y, z, xRotation=0, yRotation=0, zRotation=0, name='', oldSkin=0, cubeType=0, rusted=False, useNewSkins=True, paintPower=4, allowPortalFunneling=True, renderInFastReflections=True, entityScripts='', scriptThinkFunction='')

  • x is the x position of the object in the world. Required.
  • y is the y position of the object in the world. Required.
  • z is the z position of the object in the world. Required.
  • xRotation is the rotation of the object in the x axis. Defaults to 0.
  • yRotation is the rotation of the object in the y axis. Defaults to 0.
  • zRotation is the rotation of the object in the z axis. Defaults to 0.
  • name is the name of the object. Defaults to blank.
  • oldSkin indicates the type of cube to use, using the old skins. Defaults to 0.
  • cubeType indicates the type of cube to use. Defaults to 0.
  • rusted indicates whether or not the cube should be rusted. Defaults to False.
  • useNewSkins indicates whether or not to use the new skins. Defaults to True.
  • paintPower indicates what kind of paint power the cube has. Defaults to 4.
  • allowPortalFunneling indicates if the cube should portal funnel or not. Defaults to True.
  • renderInFastReflections indicates whether or not the cube should render in fast reflections. Defaults to True.
  • entityScripts is the name of an entity script. Defaults to blank.
  • scriptThinkFunction is the name of the script think function. Defaults to blank.

More info on the entity: https://developer.valvesoftware.com/wiki/Prop_weighted_cube


Related

Wiki: Portal2

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.