Menu

Prop_Floor_Button

Chase Rayment

Prop_Floor_Button is a representation of the Portal 2 prop_floor_button entity.

Class definition:

Prop_Floor_Button(x, y, z, name='', xRotation=0, yRotation=0, zRotation=0, parent='', model='models/props/portal_button.mdl', 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.
  • name is the name of the object. Defaults to blank.
  • 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.
  • parent is the entity name of a parent object. Defaults to blank.
  • model is the model of the object in the world. Defaults to models/props/portal_button.mdl.
  • 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_floor_button


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.