OFPEC Forum

Addons & Mods Depot => OFP - Addons & Mods General => Topic started by: FiLL2d on 07 Sep 2005, 17:53:38

Title: Adding excute script to init of an object in wrpedit
Post by: FiLL2d on 07 Sep 2005, 17:53:38
hi ppl, is it possible somehow?
Title: Re:Adding excute script to init of an object in wrpedit
Post by: remcen on 08 Sep 2005, 22:37:02
you mean if you can have a wrpedit-placed object executed a script? as far as i know: no
ofp gets info about wrpedit placed objects from their named properties in the geo or first res LOD, not from config entries.
however, there might be a solution... if you can pass over an object number to a script, then you could set up a game logic particularly for your island with [object123456] exec "\addonname\script.sqs"; [object 123457] exec "\addonname\script2.sqs"; etc.
but i'm not sure if this works.... sorry. so the question is: can a script be executed with an object number instead of its name?
Title: Re:Adding excute script to init of an object in wrpedit
Post by: FiLL2d on 10 Sep 2005, 10:59:10
ok thanks for the feedback!