Posted by Raptor [JiB] on January 28, 1998 at 14:46:19:
In Reply to: Hmmm...OK(nt) posted by Raptor [JiB] on January 28, 1998 at 13:57:36:
>
> > > Say a speed of about 10, always in the direction the player is facing. Any ideas?
> > Yuck... the player is a physics thing. You would have to remove his gravity,
> > then set his speed with SetThingVel() every 0.05 second or so. There is a
> > cog verb to get the facing : GetThingLVec() or something...
> > -CogKing
> > For when you catch up :-)
> > Don't use the return value of GetThingLVec() as is, you have to normalize
> > the vector and then scale it to the speed you want. Like :
> > VectorScale(VectorNorm(GetThingLVec(GetLocalPlayerThing())), 10)
> > -CogKing
Well, in startup in Kyle.cog, I just slipped in that line, cleared the phsyics falg 0x1, then set the timer for 0.5 where I repeted the line and reset the timer. Don't know if this is the right way, but it didn't work. The gravity went, but as I expected it makes you stick to the ceiling. Is there any way to make the player always have the flying cheat "eriamjh" enabled?. I can overcome the gravity by making the sector underwater, but then the walls go wobbly, which doesn't look too good.Thanks.