Spawning things

Archive of the old editing forum
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
Locked
User avatar
Nirvana
Posts: 156
Joined: Thu May 01, 2008 8:15 am

Spawning things

Post by Nirvana »

I know, really simple question, but I'm new to ACS.

Just wondering how to use the Thingspawn function correctly...I just can't seem to get it to work.

Please don't direct me to the Wiki, I have looked at it and it isn't all that helpful :|
User avatar
Remmirath
Posts: 2562
Joined: Sun Dec 23, 2007 3:53 am
Graphics Processor: nVidia with Vulkan support
Location: My house
Contact:

Re: Spawning things

Post by Remmirath »

Thing_Spawn(mapspottid,thingtype,angle,newthingtid)

mapspottid indicates the ThingID of the considered map spot.

thingtype indicates the thing you want to be spawned. There's a roster on the wiki of spawnable things.

angle indicates the angle of the spawned thing in degrees.

newthingtid indicates the thingID to assign to the spawned thing. If you don't need it, leave it to 0.
User avatar
Nirvana
Posts: 156
Joined: Thu May 01, 2008 8:15 am

Re: Spawning things

Post by Nirvana »

how do I go about having the script activated? As in, walk over this linedef, monsters spawn etc.?
User avatar
Remmirath
Posts: 2562
Joined: Sun Dec 23, 2007 3:53 am
Graphics Processor: nVidia with Vulkan support
Location: My house
Contact:

Re: Spawning things

Post by Remmirath »

Action 80, script execute. (assuming you're writing a script, but the rule below works for every action special).

You can select from the line properties the activation mode. If you want to spawn the thing when you cross a line, put "Player walks over". With a switch, "Player presses use". When a monster crosses the line "Monster activates", and so on.
User avatar
Nirvana
Posts: 156
Joined: Thu May 01, 2008 8:15 am

Re: Spawning things

Post by Nirvana »

Ok, I had it all correct and for some reason it didn't save the setting I had on the linedef. It all works fine now though, thanks man. (sorry for the dumb question haha)
Locked

Return to “Editing (Archive)”