Hello Guys, i need help!
I want to move a xmodel, but the problem is i can't create an entry (script brushmodel) with a xmodel.
Do you maybe know how can i make move the xmodel?
Hello Guys, i need help!
I want to move a xmodel, but the problem is i can't create an entry (script brushmodel) with a xmodel.
Do you maybe know how can i make move the xmodel?
Try doing: RightClick to bring up the menu--->script--->model and go from there.
One day it will come back
Over the lands, over the seas
Loveboy (26th December 2012)
Thank you. If i press n: targetname raygun and i add in script: raygun movez(8,1); it will move with RightClick to bring up the menu--->script--->model?
If you want to move a script_brushmodel and a xmodel, you need to link the xmodel to the brushmodel per script, because they are two separate entities.
timescale 0.01
ok, you know maybe the script?
It should be only:
Code:theModel = getEnt("theModel", "targetname"); theBrush = getEnt("theBrush", "targetname"); theModel linkTo(theBrush);
timescale 0.01
sry kung
i have this not understand
theModel = getEnt("theModel", "targetname");
theBrush = getEnt("theBrush", "targetname");
theModel linkTo(theBrush);
You have a scriptmodel with a name and a xmodel with a name. Replace TheModel with xmodel name and theBrush with scriptmodel name. Then this script links the scriptmodel to the xmodel and you can move the scriptmodel with a script.
kung foo man (31st December 2012)
Not need to write "enablelinkto();" ?
Thats COD4 only i thought