Hendo/Sandbox – User
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
== Scripts == | == Links == | ||
[http://community.bistudio.com/wiki/SQF_syntax SQF Syntax]] | |||
[http://www.armedassault.info/index.php?game=0&cat=articles&class=tutorials&id=17 Scripting Tutorial]] | |||
[http://en.wikipedia.org/wiki/Event-driven_architecture Event Driven Architecture] | |||
[http://community.bistudio.com/wiki/Script_(File) Script as threads] | |||
[http://www.ofpec.com/ed_depot/index.php?action=list&cat=sc&type=xyz Bunch of scripts] | |||
[http://community.bistudio.com/wiki/Category:Scripting_Functions_VBS2 VBS2 specific script info] | |||
[http://community.bistudio.com/wiki/Event_Scripts Event scripts] | |||
[http://tactical.nekromantix.com/tactical/wiki/doku.php?id=arma:scripting Nice third-party scripting blog] | |||
[http://www.dftos.dk/arma_scripting.html|Simple script example] | |||
[http://forums.bistudio.com/showthread.php?t=89257|FAQ by How To (i.e. CAS)] | |||
== Example Scripts == | |||
=== Melee === | === Melee === |
Revision as of 14:59, 16 November 2009
Links
Nice third-party scripting blog
Example Scripts
Melee
/* Purpose: Trigger demo Preconditions: - Create a T72 platoon - Create an A10 team - Create a playable USMC marine - Create a Trigger where you want the ambush Activator: trigger Author: Henderson */ //Feedback on script start hint "Fly Started!"; _grp = group player; //Create a tank _myTank1 = "M1Abrams" createVehicle (position player); //Create a driver //See: http://community.bistudio.com/wiki/VBS2:_CfgVehicles "SquadLeaderW" createUnit [position player, _grp, "pilot = this ;"]; //Place them in the tank pilot action ["getInDriver", _myTank1]; player action ["getInGunner", _myTank1]; //Create a tank _myTank2 = "M1Abrams" createVehicle (position player); //Create a driver //See: http://community.bistudio.com/wiki/VBS2:_CfgVehicles "SquadLeaderW" createUnit [position player, _grp, "pilot2 = this ;"]; "SquadLeaderW" createUnit [position player, _grp, "gunner2 = this ;"]; //Place them in the tank pilot2 action ["getInDriver", _myTank2]; gunner2 action ["getInGunner", _myTank2]; //Cue the A10s hog commandMove (position player);
Killer AH1Z
/* Purpose: Have A1Z engage player Preconditions: A1Z (snake) spawn Activator: snake Author: Henderson TO USE: Save this file in C:\Documents and Settings\user\My Documents\VBS2\mpmissions\missionname\ Make an M1A1 and name it player Make an AH1Z and name it snake - use the following initialization script for snake call {player execVM "snake.sqf";} Run like the dickens! */ //Feedback on script start hint "Snake Started!"; this flyInHeight 200; while {alive player} do { snake doMove getPos player; snake doTarget player; //hsnake selectWeapon "HellfireLauncher"; snake doFire player; sleep 1; }; hint "Snake killed player!";