You could use this in the placeables on damaged to play a gong sound:
PlaySound("as_cv_gongring1");
As to traps, setting the detect dc use this:
// Set the DC for detecting oTrapObject.
// - oTrapObject: a placeable, door or trigger
// - nDetectDC: must be between 0 and 250.
void SetTrapDetectDC(object oTrapObject, int nDetectDC)
As to makind it undetectable use:
// Sets whether or not the trapped object can be detected.
// - oTrapObject: a placeable, door or trigger
// - nDetectable: TRUE/FALSE
// Note: Setting a trapped object to not be detectable will
// not make the trap disappear if it has already been detected.
void SetTrapDetectable(object oTrapObject, int nDetectable=TRUE)
Just did a lot of fiddling with traps for my bud TheMythe, so these were freash in my head.
Modifié par Baragg, 24 septembre 2010 - 04:07 .