Actor Block

From WinWolf3D/WDC

(Redirected from Actor block)

The actor block is a WGD block that completely defines an actor type for your game.

Syntax

Actor name
  ...
End

Notes

Valid Commands

Example

Actor "Nazi"
   spawnstand gd_baby		108
   spawnstand gd_medium		144
   spawnstand gd_hard		180
   spawnpatrol gd_baby		112
   spawnpatrol gd_medium	148
   spawnpatrol gd_hard		184
   spawndead 124
   points 100
   dropitem bo_clip2
   reactiontime	64
   ; Note: The AddSound lines are using script-defined variables.
   addsound sight	HALTSND
   addsound shoot	NAZIFIRESND
   addsound death	DEATHSCREAM1SND
   addsound death	DEATHSCREAM2SND
   addsound death	DEATHSCREAM3SND
   addsound death	DEATHSCREAM4SND
   addsound death	DEATHSCREAM5SND
   addsound death	DEATHSCREAM6SND
   addsound death	DEATHSCREAM7SND
   addsound death	DEATHSCREAM8SND
   addsound death	DEATHSCREAM9SND
   hitpoints 25 25 25 25
   patrolstep SPDPATROL
   chasestep	1536
   AddState s_stand	156	True	0	T_Stand
   AddState s_path	164	True	20	T_Path
   AddState s_path	164	True	5
   AddState s_path	172	True	15	T_Path
   AddState s_path	180	True	20	T_Path
   AddState s_path	180	True	5
   AddState s_path	188	True	15	T_Path
   AddState s_pain	196	False	10
   AddState s_pain	200	False	10
   AddState s_shoot	202	False	20
   AddState s_shoot	203	False	20	A_Shoot
   AddState s_shoot	204	False	20
   AddState s_chase	164	True	10	T_Chase
   AddState s_chase	164	True	3
   AddState s_chase	172	True	8	T_Chase
   AddState s_chase	180	True	10	T_Chase
   AddState s_chase	180	True	3
   AddState s_chase	188	True	8	T_Chase
   AddState s_die	197	False	15
   AddState s_die	198	False	15
   AddState s_die	199	False	15
   AddState s_dead	201	False	0
End