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 Flying Monolith Script! - SOLVED
MsHannerBananer Offline
Member

Posts: 218
Threads: 34
Joined: Sep 2013
Reputation: 10
#1
Flying Monolith Script! - SOLVED

Can't seem to find any script help for this, and using the original orb chamber script from the game doesn't make things any clearer. I want to understand the script, not just throw it in there and hope it works.

Long story short, as the title suggests, I'm looking for script to help with spinning the monoliths continuously. It's as simple (or hard?) as that.

Thanks to anyone who helps me out. Smile

(This post was last modified: 10-26-2014, 08:15 PM by MsHannerBananer.)
10-26-2014, 04:08 AM
Find
Mudbill Offline
Muderator

Posts: 3,881
Threads: 59
Joined: Apr 2013
Reputation: 179
#2
RE: Flying Monolith Script!

There was a time when I spun a vinyl record 'round and 'round, and to do so, I used the script "RotatePropToSpeed." Maybe that works for you.

I do think the entity will need to be a specific type though.

PHP Code: (Select All)
RotatePropToSpeed("ts_vinyl_1"5.0f5.0f0.0f, -360.0f0.0ffalse""); 

This is the script I used, but yours would be different. First is the name, but the two next floats (the 5.0f's) determine the accelleration and optimal speed. The three next floats are X Y and Z axes. Since I spun it like a vinyl, it would spin around the Y axis, but yours probably needs either X or Z. The boolean is whether the speed is reset at max (bit unsure what they mean) and the last string is an offset area (the point you want it to rotate around). If you leave it empty like I did, it will rotate around its center.

Also, it says on the page that the entity must be a StaticObject entity, but it worked fine for me with a MoveObject entity. But in the entity itself (in User Defined Variables), I had to add this:
[Image: yAARjcS.png]

(This post was last modified: 10-26-2014, 11:18 AM by Mudbill.)
10-26-2014, 11:14 AM
Find
Darkfire Offline
Senior Member

Posts: 371
Threads: 22
Joined: May 2014
Reputation: 15
#3
RE: Flying Monolith Script!

Actually, I think it doesn't matter. I converted static object into an entity and it worked fine, without that option.
(but if this doesn't, do as Mudbill says, he's the pro one here)

10-26-2014, 07:54 PM
Find
MsHannerBananer Offline
Member

Posts: 218
Threads: 34
Joined: Sep 2013
Reputation: 10
#4
RE: Flying Monolith Script!

Thanks MudBill. I completely forgot about the rotateprop.

I didn't have to change anything about the monolith. I literally just added the script and the force to the Z axis and it spins like a never-ending spinning top, haha. Smile

Edit: Also, I hate to turn 69 into 70, but... have a rep. LOL

(This post was last modified: 10-26-2014, 08:14 PM by MsHannerBananer.)
10-26-2014, 08:13 PM
Find
Mudbill Offline
Muderator

Posts: 3,881
Threads: 59
Joined: Apr 2013
Reputation: 179
#5
RE: Flying Monolith Script! - SOLVED

(10-26-2014, 08:13 PM)MsHannerBananer Wrote: Edit: Also, I hate to turn 69 into 70, but... have a rep. LOL

Hue.

10-26-2014, 11:18 PM
Find




Users browsing this thread: 2 Guest(s)