Skemech Posted March 29, 2024 Can Anyone explain why when scripting... script 1 (void) { SetActorRoll (1, 180); } ... Doesn't roll the actor a full 180/upside down. I'm more specifically referring to the thing labeled "Aiming camera" (type 9073). 0 Quote Share this post Link to post
0 rouge_means_red Posted March 29, 2024 Not sure what result you're seeing but https://zdoom.org/wiki/SetActorRoll Quote angle: the roll angle to set. This is a fixed point angle in the range of 0.0 to 1.0 0 Quote Share this post Link to post
0 Skemech Posted March 30, 2024 ok, wow. I feel a little stupid. but one other question, how would I continuously add to the roll? A mock up example\/... script 1 ENTER { SetActorRoll (1, +0.1); Delay (20); Restart; } 0 Quote Share this post Link to post
0 kevansevans Posted March 30, 2024 script 1 ENTER { while (true) { SetActorRoll (1, +0.1); Delay (20); } } Be sure to keep that delay function in an ACS while loop, otherwise that script will freeze your source port. 0 Quote Share this post Link to post
0 Skemech Posted March 30, 2024 Is the plus sign actually meant to work? cause it doesn't... by all means I will (If I have to) write out... script 1 (void){ setactorroll (1, 0.01); delay (10); setactorroll (1, 0.02); delay (10); setactorroll (1, 0.03); delay (10); setactorroll (1, 0.04); delay (10); ect. } ... but god do I not really wanna 0 Quote Share this post Link to post
0 boris Posted March 30, 2024 (edited) 18 minutes ago, Skemech said: Is the plus sign actually meant to work? No. It just explicitly states that the value is positive. What you probably want to do is to get the current roll value and then add a small value to it. Edited March 30, 2024 by boris 0 Quote Share this post Link to post
0 rouge_means_red Posted March 30, 2024 Use GetActorRoll(1) + 0.1 for the value There's also ChangeActorRoll which might give a smoother result than SetActorRoll if you enable interpolation 0 Quote Share this post Link to post
0 aRottenKomquat Posted March 30, 2024 2 hours ago, Skemech said: Is the plus sign actually meant to work? cause it doesn't... by all means I will (If I have to) write out... script 1 (void){ setactorroll (1, 0.01); delay (10); setactorroll (1, 0.02); delay (10); setactorroll (1, 0.03); delay (10); setactorroll (1, 0.04); delay (10); ect. } ... but god do I not really wanna https://zdoom.org/wiki/Loops 0 Quote Share this post Link to post
0 Skemech Posted March 31, 2024 Or if anyone having a similar issue as me who best learns via our lord and savior youtube... 0 Quote Share this post Link to post
0 Skemech Posted March 31, 2024 (edited) Here is the exact script I'm using in my wad... bool penis = true; script 56 ENTER { while (penis == true) { ChangeActorRoll (92, GetActorRoll (92)+0.001, false); delay (1); } } Edited March 31, 2024 by Skemech 0 Quote Share this post Link to post
Question
Skemech
Can Anyone explain why when scripting...
script 1 (void) { SetActorRoll (1, 180); }
... Doesn't roll the actor a full 180/upside down. I'm more specifically referring to the thing labeled "Aiming camera" (type 9073).
Share this post
Link to post
9 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.