Saiaku Posted August 28, 2014 Posted August 28, 2014 Hellos. I've been trying to make a platform that you can land a ship onto, then use a button to rotate the ship around again for take-off.However func_rotate and scripted rotation does not seem to work at all.The plat rotates, the player model also, the ship does move, but it doesn't rotate. Any ideas how to solve this? Regards
Boothand Posted August 28, 2014 Posted August 28, 2014 The ship won't rotate with the platform unless you make both the platform and the ship rotate.A func_rotate will constantly rotate so scripting is the way to go. Also keep in mind that you need to manually create an origin brush for every moving and rotating object. Is the ship a model or made out of brushes? If it's a model, you should be able to use the method I described in this post: link. In any case, if the script doesn't work, post it (in spoiler tags) so we can have a look
Saiaku Posted August 28, 2014 Author Posted August 28, 2014 The ship is a vehicle, like x-wing, lambdashuttle.Would it work? I'll try and see what happens. Edit: I believe your method only works with static models, right? Not interactive ships that can land, take off, etc?In my attempt I was unsuccessful. I used a basic rotate script, though affect ( "rotatep", /*@AFFECT_TYPE*/ FLUSH ) { task ( "hps_rotate1" ) { rotate ( < 0.000 180.000 0.000 >, 5000 ); } do ( "hps_rotate1" ); }
Saiaku Posted August 29, 2014 Author Posted August 29, 2014 Just an update. I've tried different methods, latest being trigger shipboundary to force the ship to move.Result is that the trigger somehows instakills the ship when no one is inside of it.And if someone really is inside of it, the camera will rotate, but ship not. Does anyone know about any maps that has this feature? I'd like to see how it is solved
Boothand Posted August 29, 2014 Posted August 29, 2014 Yeah, my method wouldn't work with playable vehicles like that. I've never tried using scripts on vehicles, so don't know exactly how that works. I see no errors in your script though. @@therfiles, do you know if Icarus scripts can affect vehicles other than with parms etc?
Szico VII Posted August 30, 2014 Posted August 30, 2014 One thing you could to (to get around it) is to use the remove command to delete the vehicle, then use a static model equivalent at the same time, make it appear visible.Rotate the static vehicle model to the right angle, then again hide it (SET_INVISIBLE) and respawn the vehicle facing the right way. Bit of a workaround if the rotate a vehicle thing doesnt work.
Saiaku Posted August 31, 2014 Author Posted August 31, 2014 Thanks for the insight. Too bad I can't manipulate the original vehicle, even with the driver inside.My ideal plan was to have a circle landing pad that could be rotated with the vehicle to turn it around in a narrow "hangar" (parking space).But maybe I have to look for other alternatives.. hmm
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now