Posts: 13
Thanks: 101 in 2 Posts
3 Achievements
Tuning mod with if/else statements??
Basically, I'm new to this. I want to make a mod that changes an objects "CanMoveUpDownWalls" flag to true, but only if it has the "OnWall" flag set to true already. i want to make any item placed on walls shiftable. I don't want to change the flag for every single wall object in s3pe, I simply want to change the flag for any object passing the test. I know a little about C#, and have followed the tutorial about setting up my visual studio/creating a basic scripting mod. Here's some
pseudo-code showing what I want to do. Thank you for anyone that can help, I'm a coding newb.
Code:
if (this.object.flags.WallPlacementFlags(OnWall) == true){
this.object.WallPlacementFlags(CanMoveUpDownWalls) = true;
};