Shirson
Member-
Content Count
34 -
Joined
-
Last visited
Never -
Medals
Everything posted by Shirson
-
Attach a flag to a vehicle?
Shirson replied to peligroso's topic in OFP : MISSION EDITING & SCRIPTING
Ok Make crew man named s1 Make vehicle named v1 Make flag pole named fl in init field write: fl setflagtexture "usa_vlajka.pac";fl setflagside east; fl setflagowner s1; s1 moveindriver v1 Enjoy. -
Trigger works, equivalent script doesn\'t. Game bug?
Shirson replied to zovirl's topic in OFP : MISSION EDITING & SCRIPTING
Ur problem in tInner array Ok, trace the script: Player in vehicle and in trigger tInner = [Vehicle] !((vehicle player) in list tInner) -> (Vehicle) in list tInner = true -> !true = false. Script wait on command @!((vehicle player) in list tInner) Player get out vehicle SURPRICE!!!! tInner still contain only [Vehicle] !((vehicle player) in list tInner) -> (player) in list tInner = false -> !false = true. Script show hint "player left circle" Trigger update tInner and now they contain [Vehicle, player] @(vehicle player) in list tInner -> (player) in list tInner = true Script show hint "player entered circle" Try this: #t1 ~.01 ? ((vehicle player) in list tInner) : goto "t1" hint "player left circle" #t2 ~.01 ? !((vehicle player) in list tInner) : goto "t2" hint "player entered circle" goto "t1" -
how to make ai fallow waypoint in a ramdom order
Shirson replied to cyborgrat's topic in OFP : MISSION EDITING & SCRIPTING
in all WP change Placement from 0 to 5000 -
Uhh uhh need help, uhh.. buh.
Shirson replied to Hidden's topic in OFP : MISSION EDITING & SCRIPTING
Wrong here: ; the camera will move relative to object2. ; 3m to the front, 1m to the left and 2m ; above the ground _cam setrelpos [-1, 3.2 ] ; <----------- Change to _cam setrelpos [-1, 3, 2] -
Name of marker must be quoted: "mark" setmarkerpos [1000,1000,0]
-
€ô~|#|~": Error Type Group, expected Bool
Shirson replied to russin's topic in OFP : MISSION EDITING & SCRIPTING
</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote </td></tr><tr><td id="QUOTE">Quote: from russin on 2:40 pm on Dec. 5, 2001 i get this error now does anybody know what it is ??€ô~|#|~": Error Type Group, expected Bool <span id='postcolor'> do u use "foreach" command? -
interesting problem - setbehaviour
Shirson replied to nalesnik's topic in OFP : MISSION EDITING & SCRIPTING
Give names for sniper (uSnip) and observer (uObs) Make GameLogic object named pPre near WP1 Make trigger I A&B=0 Once Condition: uObs distance pPre < 75 OnActivation: uObs join GrpNull; uObs setbehaviour "COMBAT"; uObs setcombatmode "RED"; uObs setspeedmode "Full"; uObs move getpos pPre Make trigger II A&B=0 Once Condition: uSnip distance pPre < 75 OnActivation: uSnip setbehaviour "STEALTH"; uSnip setspeedmode "Limited"; uSnip SetUnitPos "DOWN" Edit WP1 OnActivation: uObs join group uSnip; uSnip SetUnitPos "AUTO" (Edited by Shirson at 8:55 pm on Dec. 5, 2001) -
</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote </td></tr><tr><td id="QUOTE">Quote: from K6 on 8:51 pm on Dec. 1, 2001 Ok but I need the following combination End1 Winoutro End2 Looseoutro how can I get this? <span id='postcolor'> Trigger1 - Winoutro this and (!alive shilka1) and (!alive shilka2) and (!alive shilka3) and (!alive shilka4) and (!alive shilka5) Trigger2 - Looseoutro this and ((alive shilka1) or (alive shilka2) or (alive shilka3) or (alive shilka4) or (alive shilka5))
-
Heh I test it @ home - perfectly _cam = "camera" camcreate getpos fred _cam cameraEffect ["internal","back"] _cam camsettarget fred _cam camsetrelpos [0,5,10] _cam camcommit 0 @camcommitted _cam _cam camsetFOV 0.1 _cam camcommit 3 @camcommitted _cam ~3 _cam cameraEffect ["terminate","back"] camDestroy _cam
-
</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote </td></tr><tr><td id="QUOTE">Quote: from Rob on 8:39 pm on Nov. 15, 2001 wot do u mean setrelpos from wot.... from fred obviously... ur supossed to set target fred. the the position of the cam then how long u want it to commit........ so u telling me that all i have to add is _cam camsettarget fred _cam  camsetfov 0.2 _cam camcommit 3 @camcommitted _cam without any position?  soz if i sound a dunce but ur not very clear. <span id='postcolor'> Ok, what u need: "so if i wanted to make the cam set its target to fred and zoom in i would use.... " Full script ;-------------------------- _cam = "camera" camcreate getpos fred ; Create camera on freds position. _cam camsetrelpos [0, 5, 10] ; Move camera up and forward (or backward... dont remember, sorry ) from Fred _cam camsettarget fred ; Set target camera to Fred _cam camcommit 0 ; Set changes to _cam instantly ; We have camera looking to Fred ; Now, make camera zoom in to Fred _cam camSetFOV 0.1 ; Set zooming to _cam _cam camcommit 3 ; Set changes to _cam. Camera transition zooming to Fred from normal view to zoomed view in 3 seconds @camcommitted _cam ; wait for camera complete command ;-------------------------- (Edited by Shirson at 9:30 pm on Nov. 15, 2001)
-
</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote </td></tr><tr><td id="QUOTE">Quote: from Rob on 8:04 pm on Nov. 15, 2001 so if i wanted to make the cam set its target to fred and zoom in i would use.... _cam camsettarget fred _cam camsetrelpos [0, 5, 10] _cam camcommit 0 @camcommitted _cam ~3 _cam  camsetfov 2 ?? plz tell me a bit more.. <span id='postcolor'> _cam camsetrelpos [0, 5, 10]; relpos from what? _cam camsettarget fred _cam camsetfov 0.2; Set camera Field of view (zoom). Does not commit changes (!) _cam camcommit 3 ;3 secconds camera zoom in to Fred @camcommitted _cam
-
for zoom camera use <camname> camSetFOV <number> Default number = 0.7 (i think) for zoom in decrease number (ex. 0.05) for zoom out - increase (ex. 2)
-
Hmm...Movie We look Fred from side and above. After 4 sec fred liying and look in binocular Camera fast fliying to fred (forward and low), screen flased and we can see from moving to right(left) and moving up binocular t2 ( Tank ? ) Fades. End movie. What's wrong here?
-
Make empty M2 and make east soldier named uGun in INIT field of M2 write uGun moveInGunner this if it not worked try uGun moveInDriver this
-
</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote </td></tr><tr><td id="QUOTE">Quote: from SilentEcho on 11:42 am on Nov. 13, 2001 how do i start a fire on fire<span id='postcolor'> in INIT field of ur fire write: this inflame true
-
Try write in INIT field of tank this action["WEAPON", "HEAT120"] HEAT120 - for abrams. For M60 "HEAT105"
-
Help..! how to ADD points to a player
Shirson replied to Flyingdub's topic in OFP : MISSION EDITING & SCRIPTING
</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote </td></tr><tr><td id="QUOTE">Quote: from Flyingdub on 8:05 pm on Nov. 11, 2001 thanks for your idea RED but nothing happends using addscore or addrating... How do they do to add point in sector_control to add point when flag is taken HEEEEEELLLPP pleaze .. i'm looking for the solution for more than 1 week now... aarrghh...<span id='postcolor'> Sorry man, i cant send it early - weekend. Place trigger, for add score. Repeatly OnActivation write [thislist] exec "score.sqs" Place new triger anywhere A&B = 0 GameLogic End#1 remove this and write GMO Score.sqs ;------------------------------------------------ _pl = _this select 0 "_x AddRating 1" ForEach _pl _count=0 #loop ~0.01 ? _count > (count _pl)-1 : exit _sc = rating (_pl select _count) _nm = name (_pl select _count) ? _sc >= 3: goto "mEND" ; Change for other number, if u want hint format["%2 - Score %1",_sc,_nm] _count= _count + 1 goto "loop" #mEND Gmo=true exit ;------------------------------------------------ Enjoy. P.S. Score command NOT WORKED! In debriefing, on right page "Player score" used non score, but RATING!. 2 All : For score operate use Rating and AddRating. P.P.S. ForceEnd command not worked too. (Edited by Shirson at 3:49 pm on Nov. 12, 2001) (Edited by Shirson at 10:33 pm on Nov. 12, 2001) -
unitName hasWeapon "PipeBomb" return ToF for unit. How get count of pipebombs i d'not know... yet.
-
</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote </td></tr><tr><td id="QUOTE">Quote: from Rob on 12:25 am on Nov. 9, 2001 why does everyone result into scripts for? y dont u just use the height command in the init field of the object.<span id='postcolor'> Yep, but script more visual. For init string: PH1 setpos [(getpos PH1) select 0, (getpos PH1) select 1, 0.5]
-
</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote </td></tr><tr><td id="QUOTE">Quote: from Lord Nausea on 1:05 am on Nov. 6, 2001 I need to know how many pipebombs a soldier has. I tried 'ap ammo "pipebomb"' but this always results in 0. Can anyone help? <span id='postcolor'> Show wholly script, what u use.
-
Suma or other OF Developer please tell me what Nekdo is
Shirson replied to KaRRiLLioN's topic in OFP : MISSION EDITING & SCRIPTING
Yes, Nekdo (russ - Nekto) means "somebody". But it not important. "Nekdo" - user-define variable ("WestHas" - too), and can mean anything. -
<unitName> SetUnitPos <"DOWN"|"UP"|"AUTO">
-
</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote </td></tr><tr><td id="QUOTE">Quote: from Pte Atkinson on 9:22 pm on Nov. 8, 2001 Okay, I've done everything except the Sync thing (not too sure about it, everytime I use it I get a weird result), but for some reason, as the chopper is landing the commander runs onto the 'H' so the chopper has to come down somewhere else and this screws up the Get In wp. HELP! <span id='postcolor'> U DONT NEED "H" for land heli. With Load command heli can landing anywere (exp water) And sync - very important: Select group leader Make WP for him with "Get In" Select chopper and make WP "Load" Drag "Load" WP and place near "GetIn" WP Synchronize this waypoints. (press F5, click on LoadWP and dragin mouse to GetInWP. Now u have line between this WP. And WP has synchronized) After start, Heli wait for land group. After land group reach GetInWP, heli landing and wait ALL members of group on board. Some tricks. Use aux WP before LoadWP and near for correct heli altitude (Speed-Limited, "heli flyinheight 1") After Load WP add some WP for heli take off after load group.
-
Adding weapons to groups using a script?
Shirson replied to 14th Hoot's topic in OFP : MISSION EDITING & SCRIPTING
Hmm... i think i know better method [CivGroupName] exec "armingciv.sqs" ;-------------- _civGroup = _ this select 0 "_x addweapon ""HK"" ForEach (units group _civGroup) "_x addmagazine ""HK"" ForEach (units group _civGroup) ;-------------- -
in script file, for example Or in triger: (getpos uHeli ) select 2 <= 5