•  Map-Craft Tutorials  •  Forums  •  Profile  •  Members List  •  Private Messages  •  Logout  •  

Menu   

 

HomeHome  
    Home
Map-Craft  
    Forums
    Tutorials New
    Reviews
    Site Map
    Site Search
Members  
    Your Account
    Shout Box
Files, Links & Docs  
News & Stats  
    News Archive
    Submit News
    Top Read Stories
Other  

Shout Box   

 


Only registered users can shout. Please login or create an account.

Latest 10 Tutorials   

 

Tool Box   

 


Google Powered
Google Map-Craft
Google Web


Site search

Forum search

Advanced Forum Search


Translate this page:




Search for at
www.map-craft.com Advanced Search
Targetname and Script_targetname, whats the diff?

Post new topic  Reply to topic  printer-friendly view www.map-craft.com Forum Index -> JK Editing Discussion
View previous topic :: View next topic
Author Message
Aazell
Straw
Straw



Joined: Jan 08, 2010
Posts: 86


Status: Offline
Game: JKA
PostPosted: Wed Feb 03, 2010 7:48 pm Post subject: Targetname and Script_targetname, whats the diff? Reply with quote

Hi All

I'm just trying to work out when I should use targetname or script_targetname.

For instance in my map I can label ref_tags as just targetname and the script will pick them up. Func_Static's however need to be labeled with a script_targetname. How am I to know the difference and when should I use script_targetname?

Thanks for any help you can provide!
Back to top
View user's profile Send private message
Crazy-Assassin
Expert
Expert



Joined: Aug 04, 2008
Posts: 421


Status: Offline
Title: JKFiles Staff
Game: JKA
PostPosted: Wed Feb 03, 2010 8:04 pm Post subject: Re: Targetname and Script_targetname, whats the diff? Reply with quote

Targetnames are used when triggering an entity, whether by script or another entity. (Ex: Triggering a targetname used by a func_door would make it move.)

Script_Targetnames are used when you are manipulating an entity from within a script. (Ex: Setting a parm value, using data stored in the entity to run some sort of check, movement, etc.)

It's possible to use both at once. Sometimes, you have to use both. It depends on the script and the entity's function. (Ex: A func_usable that can be toggled 'on' and 'off' as well as being movable could be done using both keys.)


Night of the living well-oiled toaster ovens.
Back to top
View user's profile Send private message
lassev
V.I.P.
V.I.P.



Joined: Jun 17, 2006
Posts: 1134
Location: Finland

Status: Offline
Title: Degenerate scripter
Game: JKA
PostPosted: Wed Feb 03, 2010 8:30 pm Post subject: Re: Targetname and Script_targetname, whats the diff? Reply with quote

In short script_ and NPC_targetnames are used mainly with the Affect("script_targetname") icarus command. The other few uses are specific things like set_look_target and such.


Punks in a house.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:
Post new topic  Reply to topic   printer-friendly view www.map-craft.com Forum Index ->  JK Editing Discussion Time synchronized with your computer time
Page 1 of 1


Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum




Powered by phpBB © 2001, 2006 phpBB Group




PHP-Nuke Copyright © 2006 by Francisco Burzi.
All logos, trademarks and posts in this site are property of their respective owners, all the rest © 2006 by the site owner.
Powered by Nuke-Evolution.

This site is cached. Click here to update the cache.
[ Page Generation: 0.32 Seconds | Memory Usage: 6.12 MB | DB Queries: 46 ]