Frictional Games Forum (read-only)

Full Version: PropHealth problem
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
hi want that a plate breaks when the player enters an area: so heres the script

PHP Code:
void OnStart()
{
AddEntityCollideCallback("Player""ScriptArea_1""opendoor"true1);
}

void opendoor(string &in asEntity)
{
        
SetPropHealth("plate_9"0.0f);


why wont this work Sad
Are you sure that the function is even being called? Try inserting a debug message. If it is being called, attempt to change 0.0f to 0.1f. I may be talking out of my ass here though as I have not yet dealt with SetPropHealth Tongue
void opendoor(string &in asParent, string &in asChild, int alState)

try that

make sure you're getting the parameters right for functions alled by a callback function. The required perimeters should be listed in the description of the callback function (as found here).
works... maaan im too dumb ;3
i will never know when i have to use what kind of synthax T_T'

anyways, thank you bot Wink

(100th post \o/)