some words i don't understand


(blizzard) #1

what does these words mean?
and how do i work with them in the script?

	setautospawn "" 0
	setautospawn "" 1

	alertentity 

	setstate  invisible

	setstate  default

(Zer0Cool) #2

http://games.chruker.dk/enemy_territory/scripting_reference.php


(TomTom7777) #3

[QUOTE=blizzard;193957]what does these words mean?
and how do i work with them in the script?

	setautospawn "" 0
	setautospawn "" 1

	alertentity 

	setstate  invisible

	setstate  default[/QUOTE]

Chrukers gives only a basic description, so I have added some more info (in case noobs are watching.)

setautospawn <target_spawn> <team>
Set the autospawn of a team to ‘target_spawn’. The ‘target_spawn’ string is the ‘description’ key on the team_WOLF_objective.

Auto spawns are the active default spawns for players (re)spawning in the map. These can be changed in the match by associating the spawn pads with a team_WOLF_objective. Changing a spawn involves enabling the team_WOLF_objective and then changing the setautospawn string so that it matches that team_WOLF_objective’s description string. The string may include spaces so make certain to enclose it in double quotes

alertentity <targetname>
Uses the entity ‘targetname’.
This triggers the default action of the entity(s) with a “targetname”, "<targetname>" property (where <targetname> is replaced by a string without spaces.) For example alertentity used on a func_explosive triggers its death event (and removes it so in this case alertentity can’t be used again). The entity type determines what alertentity does so [review information](setautospawn <target_spawn> <team> Set the autospawn of a team to ‘target_spawn’. The ‘target_spawn’ string is the ‘description’ key on the team_WOLF_objective.) on the entity in question

setstate <targetname> <default|invisible|underconstruction>
Sets the state of an entity.
For example typically setting a misc_gamemodel invisible removes both the model and its clipping box from the map. Setting it to default brings it back. setstate can also be used on func_constructs and trigger_objective_infos to enable/disable them in the map sequencing.