Jump to content

Recommended Posts

Posted

Set the spawnarg "def_attach6", that defaults to ""atdm:prop_lootbag" with "-".

Read up on the wiki on how to attach items to ai (definition attachment is covered there)!

  • Thanks 1

FM's: Builder Roads, Old Habits, Old Habits Rebuild

Mapping and Scripting: Apples and Peaches

Sculptris Models and Tutorials: Obsttortes Models

My wiki articles: Obstipedia

Texture Blending in DR: DR ASE Blend Exporter

Posted

That's done it, thank you. Took me a second to even figure out where to start when you said "spawnarg". So is spawnarg a universal term for the properties you slap (or come default) onto entities and such? Been using those plentyish.

Posted
6 hours ago, Something Hank said:

That's done it, thank you. Took me a second to even figure out where to start when you said "spawnarg". So is spawnarg a universal term for the properties you slap (or come default) onto entities and such? Been using those plentyish.

"spawnarg" is just spawn argument, is a variable you write inside a object definition (the .def files) that gets used at spawn time, to do many things, they are both accessible by the script language and c++. Hope this clears some things.

 

Posted
3 hours ago, HMart said:

"spawnarg" is just spawn argument, is a variable you write inside a object definition (the .def files) that gets used at spawn time, to do many things, they are both accessible by the script language and c++. Hope this clears some things.

 

Next to no sense to me, but I'll make sense of it in due time. I am currenlty FUMBLING, my guy.

  • Thanks 1
  • Haha 1
Posted
3 hours ago, Something Hank said:

Next to no sense to me, but I'll make sense of it in due time. I am currenlty FUMBLING, my guy.

Another definition is that a spawnarg is a property you set on an entity like a lamp, an AI or a crate: how much health it has, what sounds it makes, whether it casts shadows (not all entities support all spawnargs). The easiest way is to set it directly on an entity in DarkRadiant. They can also be set in .def files, which is useful if you want to create a new type of entity instead of tweaking existing ones.

Anyway, you should definitely follow a video tutorial:

 

  • Thanks 1
Posted
5 hours ago, Dragofer said:

Another definition is that a spawnarg is a property you set on an entity like a lamp, an AI or a crate: how much health it has, what sounds it makes, whether it casts shadows (not all entities support all spawnargs). The easiest way is to set it directly on an entity in DarkRadiant. They can also be set in .def files, which is useful if you want to create a new type of entity instead of tweaking existing ones.

Anyway, you should definitely follow a video tutorial:

 

Ayy, I just got through that tutorial series yesterday actually. One of the better tutorials I've come across.

Posted
On 10/8/2022 at 5:50 AM, Something Hank said:

Next to no sense to me, but I'll make sense of it in due time. I am currenlty FUMBLING, my guy.

Programmers have a habit of beating you round the head with terms only they can understand. You'll get used to it. ;)

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recent Status Updates

    • JackFarmer

      "The Year of the Rat." 
      😄

      Al Stewart must be proud of you!
      Happy testing!
      @MirceaKitsune
      · 1 reply
    • datiswous

      I posted about it before, but I think the default tdm logo video looks outdated. For a (i.m.o.) better looking version, you can download the pk4 attached to this post and plonk it in your tdm root folder. Every mission that starts with the tdm logo then starts with the better looking one. Try for example mission COS1 Pearls and Swine.
      tdm_logo_video.pk4
      · 2 replies
    • JackFarmer

      Kill the bots! (see the "Who is online" bar)
      · 3 replies
    • STiFU

      I finished DOOM - The Dark Ages the other day. It is a decent shooter, but not as great as its predecessors, especially because of the soundtrack.
      · 5 replies
    • JackFarmer

      What do you know about a 40 degree day?
      @demagogue
      · 4 replies
×
×
  • Create New...