Inside3D!
     

map to qc help

 
Post new topic   Reply to topic    Inside3d Forums Forum Index -> QuakeC Programming
View previous topic :: View next topic  
Author Message
RooT



Joined: 07 Sep 2005
Posts: 40

PostPosted: Thu Oct 13, 2005 6:23 am    Post subject: map to qc help Reply with quote

im wondering how to get data from an entity written thru the map editor to be read in the qc file. i have a "helper" entity that displays different text based upon a value given in the mapping program. this way i can have multiple texts displayed by a single entity. its much more efficient than making a load of different entitys i suppose Smile but i can't get the value i give it in the map program to be used in the code of the game.

map: room with "helper" entity, helper properties: self.classname = "help1"

game:

void() helper =
//make solid, model, origin, etc... not sure if i need code from map here?

void() on_click=
if trace_ent.classname == help1 do...

get what i mean? thanks!
_________________
My mod site!
Mod Status:
Turret Defense: 30%
UPS: 45%
Back to top
View user's profile Send private message AIM Address
Spike



Joined: 05 Nov 2004
Posts: 944
Location: UK

PostPosted: Thu Oct 13, 2005 7:23 pm    Post subject: Reply with quote

You realise that a classname is all an entity actually needs? Origins help too...
Change the classname, change the entity.
Create some new fields, use the noise/noise2/noise3 fields, etc.
Don't rely on the classname field for messages.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Inside3d Forums Forum Index -> QuakeC Programming All times are GMT
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


Powered by phpBB © 2004 phpBB Group