how to make an object apear [SOLVED] - Printable Version +- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum) +-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html) +--- Forum: Custom Stories, TCs & Mods (https://www.frictionalgames.com/forum/forum-35.html) +--- Thread: how to make an object apear [SOLVED] (/thread-7416.html) |
how to make an object apear [SOLVED] - magersupie - 04-16-2011 hi everyone this is my first post here anyway i am a noob at scripting. so i hope you could help me. i want this object to apear , but nothing happens. i don't get an error when i start the level so i hope someone here knows what to do this is the script: Code: //=========================================== RE: how to make an object apear - Dalroc - 04-16-2011 I'm sorry but I can't even read this.. please use some indentation.. RE: how to make an object apear - MrBigzy - 04-16-2011 And can you tell us what item? RE: how to make an object apear - magersupie - 04-16-2011 (04-16-2011, 04:37 PM)MrBigzy Wrote: And can you tell us what item? ofcourse its hanging_prisoner_1 and spotlight_1 the script that i wrote is Code: void CollideScriptArea_2(string &in asParent, string &in asChild, int alState) RE: how to make an object apear - MrBigzy - 04-16-2011 Since both of those aren't spawning, the area is the problem. Are you sure its named correctly? I also don't see a collide callback for CollideScriptArea_2 there. Is it named in your map file or are you missing it? RE: how to make an object apear - magersupie - 04-16-2011 (04-16-2011, 05:24 PM)MrBigzy Wrote: Since both of those aren't spawning, the area is the problem. Are you sure its named correctly? i think that's the problem but i'm not sure how to do this. RE: how to make an object apear - MrBigzy - 04-16-2011 AddEntityCollideCallback("Player" , "ScriptArea_1" , "MonsterFunc1" , true , 1); Like that one, but put: AddEntityCollideCallback("Player" , "ScriptArea_2" , "CollideScriptArea_2" , true , 1); Assuming your script area is named ScriptArea_2. RE: how to make an object apear - magersupie - 04-16-2011 (04-16-2011, 06:45 PM)MrBigzy Wrote: AddEntityCollideCallback("Player" , "ScriptArea_1" , "MonsterFunc1" , true , 1); hmmm this doesn't work eather do i need to put this on the exact same spot ??? RE: how to make an object apear - MrBigzy - 04-17-2011 Put it below AddEntityCollideCallback("Player" , "ScriptArea_1" , "MonsterFunc1" , true , 1); RE: how to make an object apear - magersupie - 04-17-2011 (04-17-2011, 03:24 AM)MrBigzy Wrote: Put it below AddEntityCollideCallback("Player" , "ScriptArea_1" , "MonsterFunc1" , true , 1); thanks sooo much this worked |