### Author Topic: [Scripts] Questions for a year old script  (Read 119 times)

0 Members and 1 Guest are viewing this topic.

#### Godlyvex5

• Fresh Meat
• Posts: 7
• Xbox: Godlyvex5
• Steam: Godlyvexx
##### [Scripts] Questions for a year old script
« on: July 23, 2017, 09:06:08 PM »
I didn't want to necro that thread, so I started one here. Basically, in the script coming up, there are two expressions, Sin, and Cos, that the game can't evaluate. Does this mean I have to recreate the equations? Or is the game supposed to already know sin and cos?
This code is really cool. Especially when you have a display intersect circle command.

Var (pi) = (3.1415926)

Var (vectorX) = 50 + (pos:x)
Var (vectorZ) = 50 + (pos:z)

Var (radians) = (radians) + (1) (the 1 can vary)
Var (degrees) = (radians) * (180) / (Pi)

Var (x) = (vectorX) * (cos:rad) + (pos:x) + (number equals length)
Var (y) = (pos:Y) + (1)
Var (z) = (VectorZ) * (sin:rad) + (pos:z) + (number equals length)

Script (your intersect) (wait) (vars:x,y,z)
Loop (20)