Creating a moving platform: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
(fixed text size)
Line 1: Line 1:
{{wip}} <h2> It will probably take more than 24 hours so if  you will be faster, let me know. I will not work on this page more than week. Thx
{{wip}} <h2> It will probably take more than 24 hours so if  you will be faster, let me know. I will not work on this page more than week. Thx</h2>


== Introduction ==
== Introduction ==

Revision as of 09:04, 1 February 2008

Under construction.png
This page is actively undergoing a major edit.
As a courtesy, please do not edit this while this message is displayed.
If this page has not been edited for at least several hours to a few days, please remove this template. This message is intended to help reduce edit conflicts; please remove it between editing sessions to allow others to edit the page.

The person who added this notice will be listed in its edit history should you wish to contact them.

It will probably take more than 24 hours so if you will be faster, let me know. I will not work on this page more than week. Thx

Introduction

Width:64

In this tutorial we will be creating a moving platform.

An example map is available for download here.

Creating and setting basic model

You will need one from these models

  • This one is bigger: models/props/light_rail_platform.mdl .
  • This one is smaller models/props/light_rail_platform_02.mdl .
  • After you make decided witch one is better for you, name it platform_model.
  • Set its parent to platform_func, we will create it now.

Creating function

Create brush with dimensions of chosen platform. It’s not nessesary, but it will surely work. Tie it to func_door entity by presing [ctrl + t]. Set it’s variables as follow:

Property Name Value
Change angles this is up to you, I’m using: never (fixed orientation)
Change velocity too, it’s your choise, but: ease in/ease out
First stop target P1_S1_M //P = path #, S = station #, M as Middle
Initial speed 100
Initial speed 100
Name platform_func
Max Rotation Speed 30