If you're looking for mapping help or you reckon you're a mapping guru, post your questions / solutions here
Moderator: Moderators
agentmad007
Brigadier General
Posts: 570 Joined: Tue Feb 24, 2004 3:52 pm
Post
by agentmad007 » Wed May 12, 2004 12:00 am
hi ,
i made my model with milkshape
i give it the key/value targetname:spinring.
then in my script i called the command :
nothing happen???? Here someone told me that model could be turned via script .
So my question is how maybe there is another comand .
thanks
diego
Captain
Posts: 245 Joined: Sun Dec 21, 2003 10:47 pm
Post
by diego » Wed May 12, 2004 12:19 am
You have to use a "$" when accessing target names from a script.
use:
key: $targetname (instead of targetname)
value: spinring
Diego
blue60007
General
Posts: 1247 Joined: Sun Mar 07, 2004 11:44 pm
Post
by blue60007 » Wed May 12, 2004 12:21 am
You do? I never do (well sometimes) maybe that's why some of my scripts don't work.
agentmad007
Brigadier General
Posts: 570 Joined: Tue Feb 24, 2004 3:52 pm
Post
by agentmad007 » Wed May 12, 2004 12:23 am
i tried to turn it via script model(brushes not model) it work fine , and my tagername was:spinring and not $spinring.....dont thing this could change something but i ll try
thx
agentmad007
Brigadier General
Posts: 570 Joined: Tue Feb 24, 2004 3:52 pm
Post
by agentmad007 » Wed May 12, 2004 12:34 am
dont work
damn ........
tltrude
Chuck Norris
Posts: 4774 Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:
Post
by tltrude » Wed May 12, 2004 12:45 am
Key: targetname
Value: spinring
Is fine.
If you use this:
Key: $targetname
Value: spinring
Then the targetname will stay with it when it is copied in the map. Normally, when you copy an entity, it gets a name like t1 t2 t3 etc... But, that symbol will keep the oringial's targetname.
You will have to give your model a classname of script_model or script_object to get it to spin.
Last edited by
tltrude on Wed May 12, 2004 12:49 am, edited 1 time in total.
Tom Trude,
hogleg
General
Posts: 1577 Joined: Tue Sep 09, 2003 5:23 pm
Location: Down South Hillbilly Country
Post
by hogleg » Wed May 12, 2004 12:46 am
I don't think you can spin a model, never tried.
"all the governments in the world are corrupt and in the hands of the Illuminati"
agentmad007
Brigadier General
Posts: 570 Joined: Tue Feb 24, 2004 3:52 pm
Post
by agentmad007 » Wed May 12, 2004 12:51 am
well, thx tom i will try ....i tried once to select the model and right clik to convert it in script_model but it said failed to create entity
i will try to select the model type n and changing the class_name in this window directly
agentmad007
Brigadier General
Posts: 570 Joined: Tue Feb 24, 2004 3:52 pm
Post
by agentmad007 » Wed May 12, 2004 1:05 am
well with classname script_object dont manage to make it turn :/
someone have an idea ?
tltrude
Chuck Norris
Posts: 4774 Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:
Post
by tltrude » Wed May 12, 2004 1:11 am
Try classname "script_model". This is not in the tik file, only in the map. You may have a problem with your tik file, I don't know.
Tom Trude,
agentmad007
Brigadier General
Posts: 570 Joined: Tue Feb 24, 2004 3:52 pm
Post
by agentmad007 » Wed May 12, 2004 1:16 am
i tried even with script_model it dont work
tiki file is here
Code: Select all
TIKI
setup
{
scale 0.520000 // Set default scale to 16/30.5 since world is in 16 units per foot and model is in cm's
path models/milkshape/spinring
skelmodel spinring.skb
surface gate shader spinring_gate
}
animations
{
idle spinring.skc
}
/*QUAKED milkshape_spinring (0.5 0.0 0.5) (-74 -3 -75) (75 2 74)
*/
dont know why that tiki file would lead me in trouble ?
thx .....
agentmad007
Brigadier General
Posts: 570 Joined: Tue Feb 24, 2004 3:52 pm
Post
by agentmad007 » Wed May 12, 2004 1:20 am
ok its done i managed i just confused my old bsp with the new :p hehe