i would like to add a 'permanent' item, a GPS transmitter, to my inventory in CoP.
the reason is for dropping one at the location of each stash in the game. using AMK's beacon would be a start and the snippet below would make it permanent. how to make it work in CoP?
-----
the following function is in the file: bind_stalker.script (in the gamedata\scripts directory)
i can't recall where i got this from. i have searched both CS and ShOC forums and not found any references to it function. i used this in ShOC and haven't had it work in CS yet. (i did test with the original script from CS as a base) May 2009.
function actor_binder:update(delta)
object_binder.update(self, delta)
add the following code (but not at the beginning of the function)
if not db.actor:object("item name here") then
alife():create("item name here", db.actor:position(), db.actor:level_vertex_id(), db.actor:game_vertex_id(), db.actor:id())
end
-----
this would also be a good for cheating a particular ammo or meds without resorting to God mode.