Facebook Twitter YouTube Frictional Games | Forum | Newsletter | Dev Blog | Dev Wiki | Support | Shelf | Store

Privacy Policy


Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Script Help Can i make a lift/elevator go up and down?
Author Message
oscar1007 Offline
Member

Posts: 65
Joined: Oct 2011
Reputation: 0
Post: #1
Can i make a lift/elevator go up and down?
Hello!

If possible im planing to have a lift in my upcoming custom story.
I want to use this entity: Entities/Gameplay/bridge_metal_vert

Anyone know how to script it go up and down? It's suppose to go down when you use a key on another entity.


Thank you everyone!

Money can't buy you happiness. But I rather cry in my ferrari.

PROJECT:
http://www.moddb.com/mods/oscar1007
03-02-2012 02:26 PM
Find all posts by this user Quote this message in a reply
flamez3 Offline
Posting Freak

Posts: 1,320
Joined: Apr 2011
Reputation: 57
Post: #2
RE: Can i make a lift/elevator go up and down?
SetMoveObjectState(string& asName, float afState);


Moves an object to a certain state.
asName - internal name
afState - state of the object, 0 = closed, 1 = open, values inbetween are valid too!


You'll probably have to animate it.

03-02-2012 03:11 PM
Find all posts by this user Quote this message in a reply
Acies Offline
Posting Freak

Posts: 1,276
Joined: Feb 2011
Reputation: 54
Post: #3
RE: Can i make a lift/elevator go up and down?
Animated meshes does not collide with the player :/

[Image: mZiYnxe.png]


03-02-2012 03:52 PM
Find all posts by this user Quote this message in a reply
flamez3 Offline
Posting Freak

Posts: 1,320
Joined: Apr 2011
Reputation: 57
Post: #4
RE: Can i make a lift/elevator go up and down?
(03-02-2012 03:52 PM)Acies Wrote:  Animated meshes does not collide with the player :/
Well that pooped on my idea.

03-02-2012 03:56 PM
Find all posts by this user Quote this message in a reply
jessehmusic Offline
Senior Member

Posts: 423
Joined: Dec 2011
Reputation: 8
Post: #5
RE: Can i make a lift/elevator go up and down?
(03-02-2012 02:26 PM)oscar1007 Wrote:  Hello!

If possible im planing to have a lift in my upcoming custom story.
I want to use this entity: Entities/Gameplay/bridge_metal_vert

Anyone know how to script it go up and down? It's suppose to go down when you use a key on another entity.


Thank you everyone!
Hmm....hope we get good answers here Smile

http://www.moddb.com/mods/jessehmusic - Hospital of horror , WIP
03-02-2012 04:29 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 




User(s) browsing this thread: