View Full Version : rotate pitch problem
wizzardjanni
16th April 2014, 16:00
well, I want an rotating "bank" ( www.google.com/translate ) on my fair,
but when I activate it in the game It turns the bank too. and the bank have to be how it is now ( see screenshot )
How do I fix this?
691
kung foo man
16th April 2014, 16:21
You need to set an origin brush between the 2 arms and assign it to your script_brushmodel.
1. Make brush between 2 arms
2. Set texture "origin"
3. Select the origin brush, then select the bank
4. Rightclick -> script -> brushmodel
Made a video about it here: http://killtube.org/showthread.php?359-VIDEO-rotating-brushmodels
pollo
16th April 2014, 16:27
Make 1 brushmodel for each lever:
LEVER1: origin brush + lever brush -> right click -> script_brushmodel -> N -> targetname: lever1
LEVER2: origin brush + lever brush -> right click -> script_brushmodel -> N ->targetname: lever2
Note: the origin brush will be the axis where the brushmodel will rotate around (@expert modders, correct me if I'm wrong xD I'm tryin to explain the best I can)
Now a script_brushmodel for the bank:
Bank: orgin brush + bank brush -> right click -> script_brushmodel -> N -> targetname: bank
Now make a trig to activate it:
Normal brush -> right click ->trigger -> (whatever) -> N ->targetname: trig
now in script:
main()
{
trig = getent("trig","targetname");
lever1 = getent("lever1","targetname");
lever2 = getent("lever2","targetname");
bank = getent("bank","targetname");
while(1)
{
trig waittill("trigger");
lever1 rotatepitch(360,2);
lever2 rotatepitch(360,2);
bank rotatepitch(360,2);
wait 5;
}
}
Change "pitch" instead "roll" if needed, I always get confused with that^^
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.