Trying to make it so building on roads is only allowed for Hedgehogs, but in trying to do so it makes it so anything can be built. Can anyone explain what I'm doing wrong?
This is done in player_build.sqf, placed in mission and compiles edited to load.
Added
"_isHedgehog"
to Private
Added
_is_isHedgehog = (_classname == "Hedgehog_DZ");
and changed DZE_BuildOnRoads to
if (!DZE_BuildOnRoads) then {
if (isOnRoad _position) then {
if (!_isHedgehog) then {_cancel = true; _reason = "Cannot build on a road."; };
};
};
Edit: And the moment I post that, I see my issue, lol. Time to fix the double _is. Hopefully that's the only issue.
Edit 2: Yup, that was the issue, sorry for the wasted post guys.
Question
Incar
SOLVED
Trying to make it so building on roads is only allowed for Hedgehogs, but in trying to do so it makes it so anything can be built. Can anyone explain what I'm doing wrong?
This is done in player_build.sqf, placed in mission and compiles edited to load.
Added
"_isHedgehog"
to Private
Added
and changed DZE_BuildOnRoads to
Edit: And the moment I post that, I see my issue, lol. Time to fix the double _is. Hopefully that's the only issue.
Edit 2: Yup, that was the issue, sorry for the wasted post guys.
Link to comment
Share on other sites
1 answer to this question
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now