tk102 Posted November 7, 2004 Share Posted November 7, 2004 Has anyone been able to move a placeable using a script? I have not been able to do so. The only command that placeables seem to respond to is SetFacing. Link to comment Share on other sites More sharing options...
deathdisco Posted November 7, 2004 Share Posted November 7, 2004 Didn't Redhawke do this in ORD Mandell? Placeables block your path and are not removed until a dialog is completed. Link to comment Share on other sites More sharing options...
tk102 Posted November 7, 2004 Author Share Posted November 7, 2004 I think you're referring to the rh69_clrblks script from that mod which uses the DestroyObject function. I would actually like to make placeables move, as if Force Pushed for example. Link to comment Share on other sites More sharing options...
Doom_Dealer Posted November 7, 2004 Share Posted November 7, 2004 IM not sure if this will work, but it does when i want to move a charcter around. You dont see it move though! Have you tried using a destroy/spawn script. I.e. you destroy the original and then respawn it in differant coordinates, all in one script. I gues you could give it a go. void main() { DestroyObject(GetObjectByTag("placeablename"), 0.0, FALSE, 1.0); float x=33.34; float y=147.71; float z=0.00; float r=0.0f; vector vecNPC=Vector(x,y,z); location locNPC=Location(vecNPC, r); object oNPC=GetObjectByTag("placeable'stag"); object oTarget=CreateObject(OBJECT_TYPE_PLACEABLE(???)),"placeablename",locNPC); object oPC=GetFirstPC(); SetLocalBoolean(oTrigger,0,TRUE); } - replacing the appropriate npc bits with placeable info i seriously dout that will work, its basically a copy/paste and i cant really test it. Link to comment Share on other sites More sharing options...
tk102 Posted November 7, 2004 Author Share Posted November 7, 2004 Hello Doom_Dealer, thanks for responding. I suspected the Destroy/Create Object combo may be the only way to move a placeable, but I was hesistant to use that technique since creating an object is an intensive function. Trying to simulate movement through multiple create/destroy calls would at best be very slow and at worst not work at all or only appear as a teleportation. I have tried using AssignCommand functions on a placeable following a SetCommandable call. This works*, however, placeables appear to be immobile as such. The ActionForceMoveToLocation, ActionForceMoveToObject, and JumpToLocation functions do not work unfortunately on placeables. Edit *=works on creatures Link to comment Share on other sites More sharing options...
Doom_Dealer Posted November 8, 2004 Share Posted November 8, 2004 ok, well past my abilillity now mate. Still i can imagine it being kinda cool. I guess you might just have to use some chamera trickery, i.e. show the player/npc doingf the force push animation and fire the destroy/spawn script at the same time. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.