Frictional Games Forum (read-only)

Full Version: Item on entetie
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
haiiii there again Wink

my 3rd level is on the way Big Grin \o/
now i wanna make following script sequence:

you have a dagger and you need to use it on a ritual prisoner to get a key. i want this to happen:
small 'flashszene' (white screen/some screams), prisoner doesnt move anymore, key appears and some blood streams out of his wound.

how do i have to write that script?

is it an area script which make the other things active/inactive when i touch the area with the dagger?
You'll want to utilize AddUseItemCallback in conjunction with CreateParticleSystemAtEntity, SetEntityActive, StartEffectFlash, SetPropStaticPhysics, SetEntityActive, and PlaySoundAtEntity.