Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 26

Thread: houseEffects

  1. #11
    I just put the following code into a file named "LightsOn.sqf" in my scripts folder:
    Code:
    _objHouse = nearestObjects [Centre, ["House"], 1500];
    
    {
    	for "_i" from 1 to 5 do {
    					
    					_x animate [format ["Lights_%1",_i],1];
    	};
    } forEach _objHouse;
    I then put this into my init.sqf:
    Code:
    execVM "Scripts\LightsOn.sqf";
    and it worked

  2. #12

    Help

    Can some1 please make a sample mission i've tryed every which way possible n it wont work for me.

  3. #13
    it doesnt work for me, i created a folder and put it in the main arma 2 foldier, put this in my init file in my mission

    //add lights
    execVM "Scripts\LightsOn.sqf";

    then i created the sqf file in scripts. loaded the mission and nothing

    i copy/pasted that exact code to..

    any sudgestions?

  4. #14
    the script goes to your mission's folder in "Documents/ArmA2/missions".
    It's pretty good when you're using it at the start of the mission. I've put "[] execVM lightup.sqf" in the init.sqs file (I've called the script "lightup.sqf"). I did it this way, beacause I'm having trouble when I try tu run it using execVM in the init field of a unit - returns me a strange error, don't know why though.

  5. #15
    ok i still does nothing. it appears to detect the sqf file in the missions folder but when i preview a mission it does nothing, tell me step by step.

    i did as u said. i copyed his code onto notepad named lightup.sqf (is the code suppose to have that huge weird spacing like that?, if not how do i fix?) then i put []execVM "lightup.sqf" in my missions init.sqf

    do i put the lightup into a folder called scripts and place it into documents/arma2/missions (or do i have to place it in my actual mission im making folder)

    totaly lost lol on why it not work, maybes that huge spaceing<<?

  6. #16
    _objHouse = nearestObjects [Centre, ["House"], 1500];

    {
    for "_i" from 1 to 5 do {

    _x animate [format ["Lights_%1",_i],1];
    };
    } forEach _objHouse;

    i think you need to add an object called Centre in the editor if you are using the above script. 1500 is the radius in the script above

  7. #17
    oooooo ok thanx will try it again lol

    new->
    woot it worked thanx you guys. apparently all i had to do is name my unit Centre xD as jelliz said. thanx again!
    Last edited by lostninja; Jan 16 2010 at 00:18. Reason: ^.^ is happy..got it work just wanted to say thnx in same post lol

  8. #18
    dont name your player centre, give that name to a gamelogic or an invisible helipad. ^^

  9. #19
    First Lieutenant Manzilla's Avatar
    Join Date
    May 30 2007
    Location
    In the lab cooking up some serious s#%t!
    Posts
    5,118
    Question about houses/buildings that can not be entered. I thought I read somewhere around here a long time ago that houses/buildings like this can be "animated" to have an interior.

    Is this true? If so, can any one help me with how to do this. I would like to use a building in a compound on the map but it's not one with an interior!

    I searched all over but all I can find is about making these buildings have lights, etc. but I thought I saw something about spawning an interior. Maybe I'm delusional though.
    (God damn bananas..... again)

    Join the most rootin', tootin'est crew on these here forums! That's right folks we're darn tootin'.

    Mike Tyson's ode to Manzilla's SP playing style:
    My style is impetuous. My defense is impregnable and I'm just ferocious.... I want your heart, I want to eat his children! Praise be to Allah!

  10. #20
    Corporal
    Join Date
    Jul 26 2010
    Location
    Brisbane, Australia
    Posts
    90
    Has anyone got this to work on Arrowhead? I've either got the script wrong (entirely possible) or this is doesn't work in Arrowhead.

Page 2 of 3 FirstFirst 123 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •