Search found 8 matches

Search found 8 matches Page 1 of 1
by WaxyChicken
Sat Mar 21, 2015 4:37 pm
Forum: TorqueScript
Topic: Why does this cause a crash?
Replies: 2
Views: 645
oops. never mind.
Current Object .... Current TARGET
by WaxyChicken
Sat Mar 21, 2015 4:34 pm
Forum: TorqueScript
Topic: Why does this cause a crash?
Replies: 2
Views: 645
My turrets keep shooting at RigidShape objects (eg: the boulders) so in the code i tell it to add RigidShapes to it's Ignore List. The turret takes aim at the object, the script kicks in... and the game crashes. why? %obj = turret %CurrentTarget = %obj.getTarget(); if(isObject(%CurrentTarget)) { if(...
by WaxyChicken
Sat Mar 21, 2015 3:38 pm
Forum: TorqueScript
Topic: Sticky object through script?
Replies: 9
Views: 1575
nice try, Doc, but freezesim() is part of RigidShape inheritance. AITurretShape and RigidShape both use ShapeBase, but AITurretShape doesn't use RigidShape - it's a different branch of the inheritance shape. RigidShape inheritence: http://docs.garagegames.com/torque-3d/reference/classRigidShape__inh...
by WaxyChicken
Tue Mar 17, 2015 10:03 am
Forum: TorqueScript
Topic: Sticky object through script?
Replies: 9
Views: 1575
Sometimes, yes. and there MUST be a way for the engine to enable / disable the sticky quality on the fly because, well, the editor does it. The editor can dynamically change the "Sticky" value of an object in real time. just test with creating a sticky... unsticky... resticky in the editor. unfortun...
by WaxyChicken
Fri Mar 13, 2015 1:53 pm
Forum: TorqueScript
Topic: Sticky object through script?
Replies: 9
Views: 1575
What object class are you working with? I've never seen a sticky field on anything but Item. Also, I suspect that altering the datablock is not what you should be doing. DeployableAITurret / AITurret datablock AITurretShapeData(ReactorDeployableTurret : ReactorAITurret) datablock AITurretShapeData(...
by WaxyChicken
Thu Mar 12, 2015 2:25 pm
Forum: TorqueScript
Topic: Sticky object through script?
Replies: 9
Views: 1575
Is this PhysX or?
no, default torque physics.
by WaxyChicken
Wed Mar 11, 2015 9:09 am
Forum: TorqueScript
Topic: Sticky object through script?
Replies: 9
Views: 1575
How can you change the sticky setting of an object through torque script? i am attempting to make objects that the players can move around and then "Set" once they choose a location. I've tried %obj.sticky = true; %obj.stickToGround(); and i tried %TempDataBlock = %obj.getDataBlock(); %TempDataBlock...
by WaxyChicken
Wed Mar 04, 2015 10:21 pm
Forum: Gameplay
Topic: [v3.6.1] Preventing aircraft "Sticking" using Torque Script
Replies: 3
Views: 2050
In this version of Torque3D MIT (v3.6.1) there is still the problem of aircraft getting stuck in terrain or other objects. such as when you land an aircraft at low speeds and it slowly drifts into a wall and "Gets Stuck". These code tweaks will help to automatically "UNSTICK" your stuck aircraft. us...
Search found 8 matches Page 1 of 1