![]() |
Need help, again :P - 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 - Development (https://www.frictionalgames.com/forum/forum-38.html) +---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html) +---- Thread: Need help, again :P (/thread-18921.html) |
RE: Need help, again :P - ZodiaC - 10-25-2012 (10-25-2012, 10:49 PM)beecake Wrote: How about having 3 different vars? And then just check if all 3 vars == 1? If they are, start the machine.Well that will do the trick too but why to use 3 vars when you can you use only one? RE: Need help, again :P - The chaser - 10-26-2012 I find it illogical. The only difficulty is to work and write more the script XD Is there any option so you an delete a value from a var? RE: Need help, again :P - FlawlessHappiness - 10-26-2012 (10-26-2012, 06:44 AM)The chaser Wrote: I find it illogical. The only difficulty is to work and write more the script XDAddLocalVarInt("Var", -1); RE: Need help, again :P - The chaser - 10-26-2012 (10-26-2012, 07:01 AM)beecake Wrote:Didn't know that(10-26-2012, 06:44 AM)The chaser Wrote: I find it illogical. The only difficulty is to work and write more the script XDAddLocalVarInt("Var", -1); ![]() Ok then, using AddEntityCollideCallbacks should do the trick. When a coal is removed, AddLocalVarInt("Var", -1);, and, when is put, AddLocalVarInt("Var", 1); So, using some "if"'s should do the work. RE: Need help, again :P - FlawlessHappiness - 10-26-2012 Remember to think about what would happen if the player changed from this level, to another level, and back again RE: Need help, again :P - Melvin - 10-26-2012 (10-26-2012, 10:59 AM)beecake Wrote: Remember to think about what would happen if the player changed from this level, to another level, and back again Isnt that just a matter of putting in under void OnStart()? RE: Need help, again :P - The chaser - 10-26-2012 (10-26-2012, 11:13 AM)SmokeMelvin Wrote:(10-26-2012, 10:59 AM)beecake Wrote: Remember to think about what would happen if the player changed from this level, to another level, and back again RE: Need help, again :P - ZodiaC - 10-26-2012 So in conclusion: AddLocalVarInt("Var", -1); is going to do var=var-1 and SetLocalVarInt("Var", -1); is going to do var=-1 Right? RE: Need help, again :P - The chaser - 10-26-2012 (10-26-2012, 01:25 PM)belikov Wrote: So in conclusion:Let's imagine that we have the var set to 5. If we do this: AddLocalVarInt("Var", -1); I would have it to 4. But, if I do: SetLocalVarInt("Var", 1); It's going to put the Var to 1. SetLocal sets a position for the Var, the "AddLocalVarInt("Var", -1);" erases a value of "1" to the Var. Did you understand? ![]() RE: Need help, again :P - ZodiaC - 10-26-2012 (10-26-2012, 02:00 PM)The chaser Wrote: Let's imagine that we have the var set to 5. If we do this:Yea that's what i said too ![]() |