Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Script Help Can i make a lift/elevator go up and down?
oscar1007 Offline
Member

Posts: 64
Threads: 24
Joined: Oct 2011
Reputation: 0
#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
flamez3 Offline
Posting Freak

Posts: 1,281
Threads: 48
Joined: Apr 2011
Reputation: 57
#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
Acies Offline
Posting Freak

Posts: 1,643
Threads: 60
Joined: Feb 2011
Reputation: 73
#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
flamez3 Offline
Posting Freak

Posts: 1,281
Threads: 48
Joined: Apr 2011
Reputation: 57
#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
jessehmusic Offline
Senior Member

Posts: 423
Threads: 102
Joined: Dec 2011
Reputation: 8
#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
Website Find




Users browsing this thread: 1 Guest(s)