changing keys via script?


(mazdaplz) #1

is there any way of changing key values of entities, like say: wanted to change the health value of an explosive with the push of a button, ingame, via script?

something like

button_push
{
wait 50
health inc 1000
}

it´s really unfortunate that there´s no scripting command list avaiable, at least i didnt find one


(DerSaidin) #2

Yes.

entityscriptname
{
	spawn
	{
		set
		{
			//key "value"
			// ie.
			health "10000"
		}
	}
}

I think thats ETPro only.


(nUllSkillZ) #3

:o
Scripting Reference by chruker


(mazdaplz) #4

excellent! this will save me a lot of grief, and questions :open_mouth:

however, the method is nice but can i give health a value other than a number? or increase it/decrease it based on it’s actual health rather than setting it with a new health value?

it would be equally useful if i could set the value of health to the value of an accum

EDIT: no no nevermind, my problems disapeared when i used script_mover instead of func_explosive