I've made a simple wooden plank that I want to set up so when you select it from the library, it will snap to the wall when you place it. I opened the script for one of the WWII signs that already use this process, and copied the 2 lines that supposedly allow this into my plank script.
defaultheight = 35 (sets the height for the board)
forwardfacing = 1 (supposedly snaps the entity to the nearest wall)
Here is my script:
;header
desc = Breakable Plank A
;ai
aiinit = Appear1.fpi
aimain = Default.fpi
aidestroy = Disappear1.fpi
;spawn
spawnmax = 0
spawndelay = 0
spawnqty = 0
;orientation
model = Breakable Plank A.x
offx = 0
offy = 0
offz = 0
rotx = 0
roty = 0
rotz = 0
defaultheight = 35
forwardfacing = 1
scale = 100
defaultstatic = 1
materialindex = 4
collisionmode = 1
strength = 0
;visualinfo
textured = Breakable Plank A.tga
castshadow = 0
;Animationinfo
The board's default height does set to 35 as it should, but for some reason, the green arrow won't appear that allows the entity to snap to the nearest wall when placed. Am I missing something, or does the 'snap to wall' command only work for static objects?
Success is not final--failure is not eternal.