How do I create a spawn flag for ET?


(lispider) #1

Hi, I am really new to mapping etc etc.

What I am trying to do is make a spawnflag that targets a spawn point/area to progress through the map. Exactly, like maniac mansion. I have looked at their script but I am totally clueless as to what entities need to be placed in the map and what keys and values for such entities should be.

I have been at it for almost a day and not figured it out, at this point im just distraught.

If anyone has an example map or a howto or such I would so apreciate it :slight_smile:

I get script errors when I try myself and I created a trigger box but dont knowwhat kind of trigger it needs to be and how to define another spawn area.

I am focussing on a flag for axis only at this pooint but would like both axis and allies to be able to use it eventually :slight_smile:

Here is the script im working with,


game_manager
{
	spawn
	{
		// Game rules
		wm_axis_respawntime	3
		wm_allied_respawntime	3
		wm_set_round_timelimit	60
		wm_setwinner -1
	}
}

// FLAG 1
//
flag1
{
	spawn
	{
		accum 1 set -1
	}

	trigger axis_capture	// flag has been touched by an Axis player
	{
		accum 1 abort_if_not_equal -1	// flag owned by someone, then abort.
		accum 1 set 0					// Axis own the pole
		wm_announce	"Axis capture the flag 1!"
		//alertentity flag1spawns
		alertentity flag1area

		globalaccum 0 abort_if_greater_than 0 // atleast flag number 1 already taken, abort
		globalaccum 0 set 1
		wait 500
		setautospawn "Flag 1" 0
		setautospawn "Flag 1" 1
	}

	trigger allied_capture	// flag has been touched by an allied player
	{
		accum 1 abort_if_not_equal -1	// flag owned by someone, then abort.
		accum 1 set 1					// Allies own the pole
		wm_announce	"Allies capture the flag 1!"
		//alertentity flag1spawns
		alertentity flag1area

		globalaccum 0 abort_if_greater_than 0 // atleast flag number 1 already taken, abort
		globalaccum 0 set 1
		wait 500
		setautospawn "Flag 1" 0
		setautospawn "Flag 1" 1
	}

	trigger kill
	{
		remove
	}
}



(lispider) #2

I have the checkpoint and the objectice and them linked to traget flag1area, when u touch the flag the map kicks out saying cant find target