Difference between revisions of "AttachWire - ObjectReference"
m
no edit summary
imported>JBURGESS (Written using information available in the ObjectReference source script.) |
imported>JBURGESS m |
||
(One intermediate revision by the same user not shown) | |||
Line 19: | Line 19: | ||
<source lang="papyrus"> | <source lang="papyrus"> | ||
; Attach a metal cable wire between the top of a radio tower to one of it's anchor points. | ; Attach a metal cable wire between the top of a radio tower to one of it's anchor points. | ||
ObjectReference wireRef = RadioTowerTop.AttachWire( | ObjectReference wireRef = RadioTowerTop.AttachWire(RadioTowerAnchor, MetalCableSpline) | ||
; Enable the wire so we can see it. | ; Enable the wire so we can see it. | ||
wireRef.Enable() | wireRef.Enable() | ||
Line 25: | Line 25: | ||
== Notes == | == Notes == | ||
*The ref this is called on must linked to a workshop using the keyword WorkshopItemKeyword (FormID 00054BA6). The calling ref must also not be another BendableSpline. | *The ref this is called on must linked to a workshop using the keyword WorkshopItemKeyword (FormID 00054BA6). All objects placed in workshop mode are linked to the workshop using this keyword. The calling ref must also not be another BendableSpline. | ||
*When created, the new ref is disabled, so you must enable it yourself. For convenience you can use [[CreateWire - ObjectReference|CreateWire]] instead. | *When created, the new ref is disabled, so you must enable it yourself. For convenience you can use [[CreateWire - ObjectReference|CreateWire]] instead. | ||