D1v1ne122 Posted July 24, 2016 Posted July 24, 2016 (edited) As horrible as it feels, stuck on a EOF compile errorSo far checked: - Space at the end of line- SyntaxScriptname GetFilterCharge extends ObjectReference ObjectReference AmmoGasMaskFilter int Property Charge = 50 auto int Function Get() return Charge EndFunction Function Set(int i) Charge = i EndFunction EndProperty Edited July 24, 2016 by D1v1ne122
deadbeeftffn Posted July 24, 2016 Posted July 24, 2016 Hi, you can make the property "auto", in this case the get/set routines are defined "auto"-matically and you can't redefine then. Trying to do so, causes an error.Alternatively you can define the property to be non-auto. Then you have to define get/set routines yourself. Though keep in mind, that non-auto properties can't have initial values.
D1v1ne122 Posted July 24, 2016 Author Posted July 24, 2016 Can I make a constructor to default on creation of a new AmmoGasMaskFilter instance? "Charge" acts nearly the same as Fusion Cores but drains at a different rate. I couldn't find any script examples of fusion core use so I'm trying to recreate it.
Recommended Posts