Home
Intel Depot
Editors Depot
Missions Depot
Addons Depot
Forum
Home
Help
Search
Login
Register
OFPEC Forum
»
Editors Depot - Mission Editing and Scripting
»
OFP - Editing/Scripting General
(Moderators:
h-
,
savedbygrace
,
Gruntage
) »
Angle from player to target?
« previous
next »
Send this topic
Print
Pages: [
1
]
Go Down
Author
Topic: Angle from player to target? (Read 416 times)
0 Members and 1 Guest are viewing this topic.
BUNNY
Guest
Angle from player to target?
«
on:
22 Oct 2004, 07:42:20 »
Has any1 done this little and multiuseful script that returns the degree from 0-360 from player to the target (at players point of view). I tried to do this but I'm not so good at math.
Logged
Mud_Spike
Contributing Member
Re:Angle from player to target?
«
Reply #1 on:
22 Oct 2004, 09:46:47 »
Oh yes, there is a handy function for that (actually a bunch of 'em depending on input type):
http://www.ofpec.com/editors/funcref.php?letter=All#DirToObj
And if you dont know how to use functions; there is a lovely intro in the editors depot.
Go fetch!
«
Last Edit: 22 Oct 2004, 09:47:11 by Mud_Spike
»
Logged
BUNNY
Guest
Re:Angle from player to target?
«
Reply #2 on:
22 Oct 2004, 09:52:28 »
PERFECT!!! Thank you so much, and thanks for the functionmaker!
Logged
Send this topic
Print
Pages: [
1
]
Go Up
« previous
next »
OFPEC Forum
»
Editors Depot - Mission Editing and Scripting
»
OFP - Editing/Scripting General
(Moderators:
h-
,
savedbygrace
,
Gruntage
) »
Angle from player to target?
Top of page