Tinker 10 Posted July 17, 2009 1 objective is to satchel charge a Comms tower. Tower is already on the map, named Telek 1. Placed a trigger, but it keeps stating I am missing a ; :confused: Have read other missions and have tried 2 so far that are in them. this && not alive Telek 1 not alive Telek 1 How come they don`t work for me? They have no ; in the missions I have looked at. Share this post Link to post Share on other sites
Tajin 349 Posted July 17, 2009 there are no " " spaces in varnames. Atleast... there shouldn't be. Name it "Telek1" or "Telek_1" but not "Telek 1". condition: !(alive Telek1) Share this post Link to post Share on other sites
Big Dawg KS 6 Posted July 17, 2009 Indeed, the editor shouldn't even let you add spaces to names. Share this post Link to post Share on other sites
Tinker 10 Posted July 17, 2009 Understood thnx, but this object is already built on the map and named as Telek 1. I did not place it there... http://i131.photobucket.com/albums/p292/9MS-Admin/Telek1.jpg Cannot find a way to open it`s properties and rename it? Have tried entering the ID # but no go too. Share this post Link to post Share on other sites
Big Dawg KS 6 Posted July 17, 2009 Then place an object next to it and put this in its init: telek1 = getPos this nearestObject id Repalce id with the ID of the Telek 1 object. Then just use the name telek1 in your trigger. Share this post Link to post Share on other sites
jw custom 56 Posted August 2, 2009 Then place an object next to it and put this in its init: telek1 = getPos this nearestObject id Repalce id with the ID of the Telek 1 object. Then just use the name telek1 in your trigger. Wut??? Please explain this again :confused: I placed a satelit next to the tower named telek1 and with: telek1 = getPos this nearestObject id in it's init field. Then i have a trigger with following in it's condition field: !alive telek1; and END as type. Nothing happens. Share this post Link to post Share on other sites
OberSchutze 19 Posted August 2, 2009 Needs the () so !(alive Telek1); Share this post Link to post Share on other sites
Taurus 20 Posted August 2, 2009 Change the nearestObject line to: telek1 = getPos this nearestObject [b]96025[/b] And it'll work. You see the numbers there on your screenshot. Share this post Link to post Share on other sites
f2k sel 164 Posted August 2, 2009 He also said he had named satelit telek1 which may not help. If all your doing is checking to see if a building is destroyed don't forget that you can group some object to a trigger. Place a trigger set it to notpresent and group it to the building you want to check. Not all buildings work but most houses do. Share this post Link to post Share on other sites
Tinker 10 Posted August 2, 2009 I used small objects / can (ID is of the Tower) Did not name the can, left it empty. In the init line: Telek1 = getpos this nearestObject 96025 Tigger: not alive Telek1 Share this post Link to post Share on other sites
jw custom 56 Posted August 2, 2009 Change the nearestObject line to: telek1 = getPos this nearestObject [b]96025[/b] And it'll work. You see the numbers there on your screenshot. That worked... i was wondering how to get those ID's and now i know :P Thanks for the help and so fast, really appreciated :cool: Share this post Link to post Share on other sites