Coding in Entites for maps.
Moderator: InsideQC Admins
18 posts
• Page 1 of 2 • 1, 2
Coding in Entites for maps.
Hi i made a circus tent entity and i want it to be in the map. I was wondeirng if there is a way where i code it in and then do something so i can select the entity in worldcraft and place it where i want. I asked a friend and he gave me this code and said he didn't know what to do after.
- Code: Select all
void() info_ctent_spawn =
{
precache_model("progs/circtent.mdl");
setmodel(self, "progs/circtent.mdl");
self.netname = "circus tent";
self.classname = "ctent";
setsize(self, '0 0 0', '0 0 0');
self.movetype = MOVETYPE_NONE;
self.solid = SOLID_SLIDEBOX;
}
- sniperz227
- Posts: 112
- Joined: Sat Apr 09, 2011 3:19 am
nm its okay my friend told me how to do it i just spawned an entity and edited the properties and changed the name to my models classname im testing it to see if it works
- sniperz227
- Posts: 112
- Joined: Sat Apr 09, 2011 3:19 am
nvm it didnt work i went into worldcraft and put an entity in then renamed it to my entity name that i was putting it and tested it with a default quake model but it didnt work 
- sniperz227
- Posts: 112
- Joined: Sat Apr 09, 2011 3:19 am
thats what i get in the fdg
@PointClass size(-4 -4 -12, 4 4 20) base(Light, Target, Targetname) =
light_torch_small_walltorch : "Small walltorch" []
and isnt there another way of spawning entites without using the fdg just code ?
@PointClass size(-4 -4 -12, 4 4 20) base(Light, Target, Targetname) =
light_torch_small_walltorch : "Small walltorch" []
and isnt there another way of spawning entites without using the fdg just code ?
- sniperz227
- Posts: 112
- Joined: Sat Apr 09, 2011 3:19 am
@PointClass base(ctent) = info_ctent_spawn : "circus tent" []
try that. i'm not sure if it's right havnt messed with fgds much.
maybe this.
@PointClass base() = info_ctent_spawn : "circus tent" []
if this isn't working it might be the code. not the fgd.
try that. i'm not sure if it's right havnt messed with fgds much.
maybe this.
@PointClass base() = info_ctent_spawn : "circus tent" []
if this isn't working it might be the code. not the fgd.
-

ceriux - Posts: 2223
- Joined: Sat Sep 06, 2008 3:30 pm
- Location: Indiana, USA
have you added the new fgd to worldcrafts fgd list in configuration? if not just make an entity in worldcraft , right click it go to properties and change the name of the entity to info_ctent_spawn. save and compile the map and test.
if that doesnt work do the same thing, but change the name to the classname of the entity and try again. if none of this works. it must be your code.
which your code looks okay to me.
if that doesnt work do the same thing, but change the name to the classname of the entity and try again. if none of this works. it must be your code.
which your code looks okay to me.
-

ceriux - Posts: 2223
- Joined: Sat Sep 06, 2008 3:30 pm
- Location: Indiana, USA
thats what i did before but it still wouldn't work. the code above in my first post is put in a new .qc file and i tried it in my items.qc would you please have a look and tell me if there is something wrong with it because their must be if it does not work.
- sniperz227
- Posts: 112
- Joined: Sat Apr 09, 2011 3:19 am
18 posts
• Page 1 of 2 • 1, 2
Who is online
Users browsing this forum: No registered users and 1 guest
