script_mover problem


(Flotsam) #1

Whenever I make a script_mover actually move, it always flips itself the wrong way. For instance, instead of a boat travelling forwards through water, it would actually be travelling sideways for me. For simple movers I usually just flip the whole thing 90 degrees and my problem is fixed. In this case it would be really irritating to do that because I have to build my map around the mover, and with it flipped 90 degrees in the editor i cant allign things properly. Any help is appreciated.

Thanks.


(Wezelkrozum) #2

A script_mover always travels with the x-as as forward and backward, y-as left and right and z-as up or down. I think you need to build your script_movers 90 degrees to the x-as intead of the y-as.


(Qualmi) #3

are you willed to read it on a tutorial or try it on a example map ?


(Flotsam) #4

Thanks, I finally got it working. It turns out that you need the origin to be in the very centre of the mover on the x-y plane >.<

EDIT: I have encountered an error “trigger has unknown name”. I did a search, and found an answer except it can’t work for me. I have a misc_gamemodel with a scriptname declared. One event in it is able to work, but all the others don’t :/. Not sure why this is happening or how to fix it.


(-SSF-Sage) #5

[QUOTE=Flotsam;197474]
EDIT: I have encountered an error “trigger has unknown name”. I did a search, and found an answer except it can’t work for me. I have a misc_gamemodel with a scriptname declared. One event in it is able to work, but all the others don’t :/. Not sure why this is happening or how to fix it.[/QUOTE]

Post the script and we should be able to point out the flaws for you.


(Wezelkrozum) #6

The first thing what could cause this error is a wrong reference to a scriptblock. Check this first or post the script into (code) tags.
If you get this error at the beginning you should add a “wait 100” command in the spawn scriptblock, because the entity gets created after you’ve loaded the game. While loading it isn’t there and can’t run the scripts.
If that doesn’t work you can try it with a misc_model instead of gamemodel.
And if these things doesn’t fix anything at all, this error means you need an origin, but that should be weird cause this fix works only for script_movers.