Scripting function not in scripting references

broken avatar :(
Created 1375 days ago
by mala15
0 Members and 1 Guest are viewing this topic.
1,343 views
broken avatar :(
×
broken avatar :(
Location: no
Date Registered: 4 April 2014
Last active: 100 days ago
Posts
68
Respect
Forum Rank
Rotting Walker
Primary Group
Donator ♥
My Groups
More
Signature
Raatn
×
mala15's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
mala15's Contact & Social Links
Hi,

I've found a function that is not in "scripting reference" or anywhere on the forum when i searched for it.
It has been of help to me when trying to solve a few problems so I'll post it here for anyone that don't know about it. I think this comes under "General Help - Scripting"

Anyone else know of "unknown" functions that might be of use? Please post :)

---------------------------------------------------------------------
VectorFromLineToPoint( line_point1, line_point2, target_point);
This function "draws" an infinite line through the coordinates line_point1 and line_point2, and gives back the perpendicular vector from that line to the coordinate target_point.
---------------------------------------------------------------------

I've found this useful a few times, but treyarch have used it to determine if an entity is in front or behind a player or character. In sniper_stealth_logic.gsc on line 257 you can see an example of that, the function is called "entity_is_in_front_of_me( target_entity )".
Last Edit: November 13, 2015, 02:04:07 pm by mala15
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 14 September 2013
Last active: 148 days ago
Posts
1,895
Respect
Forum Rank
Zombie Destroyer
Primary Group
Community Scripter
My Groups
More
My Contact & Social Links
More
Personal Quote
BE ORIGINAL
Signature
×
MakeCents's Groups
Community Mapper Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager.
Community Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
BO3 Modtools Alpha
BO3 Modtools Alpha
This user has access to the Black Ops 3 Modtools Alpha
Cool, that sounds like a useful function.

Here is a complete list of functions:
http://ugx-mods.com/forum/index.php/topic,7207.0.html

Ray's sublime auto complete for gsc
http://ugx-mods.com/forum/index.php/topic,7211.0.html

My (and others helping) sublime auto complete for gsc, csc, and menu, can be found here:
http://ugx-mods.com/forum/index.php/topic,5923.0.html
and here is where we keep it updated:
[You are not allowed to view external links. Register or Login to see them]
Last Edit: November 13, 2015, 02:10:21 pm by MakeCents
broken avatar :(
×
broken avatar :(
Location: no
Date Registered: 4 April 2014
Last active: 100 days ago
Posts
68
Respect
Forum Rank
Rotting Walker
Primary Group
Donator ♥
My Groups
More
×
mala15's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
mala15's Contact & Social Links
Cool, that sounds like a useful function.

Here is a complete list of functions:
http://ugx-mods.com/forum/index.php/topic,7207.0.html

Ray's sublime auto complete for gsc
http://ugx-mods.com/forum/index.php/topic,7211.0.html

My (and others helping) sublime auto complete for gsc, csc, and menu, can be found here:
http://ugx-mods.com/forum/index.php/topic,5923.0.html
and here is where we keep it updated:
[You are not allowed to view external links. Register or Login to see them]


Woah, nice :D

Thank you very much:) Have to put some time into absorbing those resorcouces.
broken avatar :(
×
broken avatar :(
[UGX] Documentation Writer & Programmer
Location: usLos Angeles, CA
Date Registered: 23 August 2013
Last active: 10 days ago
Posts
1,322
Respect
Forum Rank
Zombie Colossus
Primary Group
UGX Team Member
My Groups
More
My Contact & Social Links
More
Personal Quote
(ง º ω º )ง u wont sum m8y?
Signature
Do not take life too seriously. You will never get out of it alive.
×
DidUknowiPwn's Groups
UGX Team Member
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Community Scripter Elite Has shown excellence and experience in the area of custom scripting in the UGX-Mods community.
BO3 Modtools Alpha
BO3 Modtools Alpha
This user has access to the Black Ops 3 Modtools Alpha
Well learning names is fine and dandy but need to figure out what the function parameters/return/types are :D
broken avatar :(
×
broken avatar :(
Location: no
Date Registered: 4 April 2014
Last active: 100 days ago
Posts
68
Respect
Forum Rank
Rotting Walker
Primary Group
Donator ♥
My Groups
More
×
mala15's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
mala15's Contact & Social Links
Well learning names is fine and dandy but need to figure out what the function parameters/return/types are :D

what do you mean?:)
I didn't intend to memorize names, but look through stuff in those links and find what I'm capable of using^^
broken avatar :(
×
broken avatar :(
☭ Soviet Commander ☭
Location: us
Date Registered: 13 August 2012
Last active: 1149 days ago
Posts
2,794
Respect
Forum Rank
King of the Zombies
Primary Group
Community Daedra
My Groups
More
My Contact & Social Links
More
Signature
Let's keep this thread on topic from here on in. -DBZ

+1 to off-topic reply -DBZ

lmao. Too funny.

Goliath Script Placer: http://ugx-mods.com/forum/index.php/topic,11234.msg125257/topicseen.html#new

"...Christ, people. Learn C, instead of just stringing random characters
together until it compiles (with warnings)..."

-Linus Torvalds
×
daedra descent's Groups
Community Daedra
Community Daedra
daedra descent's Contact & Social LinksBlueSoviet
what do you mean?:)
I didn't intend to memorize names, but look through stuff in those links and find what I'm capable of using^^

Documentation on what the function does, like:

What its purpose
Arguments(and their data types)
What it returns(data type)
Example usage

Data types can be strings, integers, double, Boolean, etc.
Last Edit: November 13, 2015, 08:22:26 pm by daedra descent
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 14 September 2013
Last active: 148 days ago
Posts
1,895
Respect
Forum Rank
Zombie Destroyer
Primary Group
Community Scripter
My Groups
More
My Contact & Social Links
More
Personal Quote
BE ORIGINAL
×
MakeCents's Groups
Community Mapper Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager.
Community Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
BO3 Modtools Alpha
BO3 Modtools Alpha
This user has access to the Black Ops 3 Modtools Alpha
Shenanigans.

You just do this until it works:


I think the OP thought those things were more obvious than they are to those that will benefit from the function maybe, but dukip and dd are saying you could add more like you would see in the script reference maybe?
Like this:
[You are not allowed to view external links. Register or Login to see them]
Last Edit: November 13, 2015, 08:28:29 pm by MakeCents

 

Login

or login with an authentication provider below
Sign In with Google
Sign In with Twitter
Sign In with Discord
Sign In with Steam
Sign In with Twitch
Loading ...