Page 1 of 2

Quick question about non-scripted fans

Posted: Wed Mar 31, 2004 4:34 pm
by Mulkaccino
Non-scripted fans. Seen it done many-a-times but for some reason I cannot get it to work and I'd much rather use non-scripted than scripted. Can someone check my work?

Center section of the fan (script_object)
Key: targetname
Value: fan1
Key: rotatex
Value: -650

Each blade (script_object)
Key: bind
Value: fan1

Nothing in script file.
Also, I get the error "Cannot find entity with name "fan1"" in console when I compile

I know I'm doing something silly. I wasted so much time trying and looking for the answer last night :cry: I know one of you can see my problem, point it out, and make me feel like this :arrow: :oops: :x :)

Posted: Wed Mar 31, 2004 5:45 pm
by Mulkaccino
Oh yes, the center piece is spinning, but the blades are not binding to the center piece. The error "Cannot find entity with name "fan1"" appears 8 times in the console, once for each fan blade. I've check for typos man-a-times... no typos :?

Posted: Wed Mar 31, 2004 5:48 pm
by Combat Kirby
Try giving each blade a targetname, such as: blade1, blade2 and so for as many blades you have. I believe objects can't bind to each other without targetnames.

Hope That helps,
Kirby.

Posted: Wed Mar 31, 2004 6:24 pm
by Mulkaccino
I've already giving them Key: targetname Value: blade01, 02 , 03 etc etc. Hasn't worked though. Should I just hit my computer really hard and hope for the best? :D Seems to work with my VCR...

Posted: Wed Mar 31, 2004 6:34 pm
by Combat Kirby
Ok, for each other blade, did you use the "space bar" to clone the other blades?? If you did, this could be why the blades are not working. It seems at times script_objects loose something when cloned. It happened to me when I was making rotating lights. Make each blade on its own then assign them the script_object and give them their targetnames again.

Let me know.
Kirby.

Posted: Wed Mar 31, 2004 7:28 pm
by jv_map
Best make your entire fan 1 script_object (an entity can have more than 1 brush). To do so, first select the blades, then selection -> ungroup brush. Then, select the center section and press N, see if it still is a script_object. If it is, follow the instructions below very accurately:
- unselect everything (esc)
- select the center section
- select the blades
- selection -> add to entity

done :)

The above steps need to be followed exactly, i.e. if you misselect something you cannot unselect it again (you can but then it won't work ;)), so you gotta start from the beginning (unselect stuff) when something goes terribly wrong.

To check if all went right, select the center section and press ctrl + e. The blades now should automatically be selected, too :)

Posted: Wed Mar 31, 2004 7:30 pm
by Mulkaccino
I did clone them using the space bar so when I get home I'll make the scripts by hand again... what a pain though... as I have 16 parallelograms (non-rectangular), some at a 45degree angle... :roll:

Still interesting that i would get the "No entity with name "fan1"" in my console, though, when one of my fan center piece is an original script_object(non-copied) and has the targetname fan1.

I'll let you know what happens. Much thanks Kirby

Posted: Wed Mar 31, 2004 8:04 pm
by hogleg
I don't understand why make a fan complicated.
Just highlight your origin and blades and make it a rotating door. Then set the angle and speed.

Posted: Wed Mar 31, 2004 8:18 pm
by Mulkaccino
I was unaware you could do that Hogleg. I'll try that as well. Thanks!

Posted: Wed Mar 31, 2004 8:55 pm
by wacko
in case u have still problems, I've put one into the recycling bin (misc section)

Posted: Wed Mar 31, 2004 9:43 pm
by hogleg
Here's a link I used when I first made one:

http://www.modtheater.com/forum/showpos ... ostcount=1

:wink:

Posted: Thu Apr 01, 2004 11:58 am
by jv_map
Wacko wrote:in case u have still problems, I've put one into the recycling bin (misc section)
I'd like to add to that, if you can't solve the problem, you can always throw your map into the recycling bin :P

j/k ;)

Posted: Thu Apr 01, 2004 4:47 pm
by Mulkaccino
Well the recycling bin won't see the map, I got it figured out because of everyones help. :D jv_map, I didn't even see your first post here! You must have snuck that sucker in...

Posted: Thu Apr 01, 2004 5:00 pm
by wacko
jv_map wrote:I'd like to add to that, if you can't solve the problem, you can always throw your map into the recycling bin :P
j/k ;)
take care not to get bitten by the cookie monster :P

Posted: Thu Apr 01, 2004 5:24 pm
by jv_map
I shall fear no cookie monsters, but I'd better stop spamming now as I do fear Bjarne and his evil snowman :shock: