1 being volumes is not doing anything. Possibly could be messy something up, not sure what it could be replaced with however. 2 being the if statement. Should be based off how I learned code should be if(level.zone.volumes.is_active == true) Sorry if this doesn't help of has been said but just things I see as of now
1 being volumes is not doing anything. Possibly could be messy something up, not sure what it could be replaced with however. 2 being the if statement. Should be based off how I learned code should be if(level.zone.volumes.is_active == true) Sorry if this doesn't help of has been said but just things I see as of now
I saw something in _zombiemode_zone_manager.gsc that had had .volumes in it, like this:
Code Snippet
Plaintext
level.zone.volumes.is_active
Do you think that mades a difference?
I think the IF statement is correct because i see alot of code where Treyarch declares a variable true or false and then does an IF statement the exact same way, so i assume the IF statement checks for true if not defined.
i dont know if the true stuff in the if statement really mattters but it doesnt hurt you if you add it anyway xD i changed some things and one of the to [e] to see if that is the problem
I saw something in _zombiemode_zone_manager.gsc that had had .volumes in it, like this:
Code Snippet
Plaintext
level.zone.volumes.is_active
Do you think that mades a difference?
I think the IF statement is correct because i see alot of code where Treyarch declares a variable true or false and then does an IF statement the exact same way, so i assume the IF statement checks for true if not defined.
Yah I dont think the if would do anything but like jjbradman says doesnt hurt to try but my thinking would still be the volumes but I can check through some of the code soon to double check
i dont know if the true stuff in the if statement really mattters but it doesnt hurt you if you add it anyway xD i changed some things and one of the to [e] to see if that is the problem
i dont know if the true stuff in the if statement really mattters but it doesnt hurt you if you add it anyway xD i changed some things and one of the to [e] to see if that is the problem
Well, in your zone array, you just have the names of the zones. You cannot check if a player is touching a 'name of a zone'. You need to actually acquire the info_volume entities somewhere in your code to be able to use the for the touch check.
Well, in your zone array, you just have the names of the zones. You cannot check if a player is touching a 'name of a zone'. You need to actually acquire the info_volume entities somewhere in your code to be able to use the for the touch check.
- Phil.
You mean get the entity in the game with getEntarray();, right? i still have that in my code:
Yes, you do have it there. But you don't use the volume entity for the IsTouching() check, instead you use the zone's name, which won't work, obviously.
Yes, you do have it there. But you don't use the volume entity for the IsTouching() check, instead you use the zone's name, which won't work, obviously.
- Phil.
Then what do i use exactly? I see in Treyarch scripts that they do practically the same thing, unless i'm missing something.
You obviously don't do the same, as I have explained. And I have also explained what you need to do: You need to use the info_volume entity (entities) of the zone and check if the player is touching that (them).