Posted by Stealth on January 21, 1998 at 10:38:49:
In Reply to: Need some help on vectors posted by fiXXXer on January 20, 1998 at 09:40:54:
> Hey, guys! First of all, thanks for JED. It's very easy to use!
> Now, I would like to ask COGKing or anybody for some help on using vectors in COG filez...
> Can I add a direction vector relative to the vector the player is facing?
> Like: strafe player left when bin XX is activated.
> How can I do that?
> thanks in advance...
> fiXXXer
You can check a bin with this.
IsInvActivated() Info
Checks bin to see if it is activated. BINS Ref
Use: IsActive = IsInvActivated(thing,bin); returns 1 if bin active,0 if inactive.
See force_throw.cog for lots of examples of using vectors relative to the player,
then you can use ApplyForce to move the player.