Home   Help Search Login Register  

Author Topic: Numpty Needs help with waypoints in MP script  (Read 1758 times)

0 Members and 1 Guest are viewing this topic.

Offline trooper543

  • Members
  • *
Numpty Needs help with waypoints in MP script
« on: 21 Feb 2009, 15:38:35 »
Hi there all

I am looking for some assistance with the script below, what i would like to do is to be able to add in waypoints to the scripts i would very much like to use hidden marker for the waypoints and to be ables to set the waypoints behaviour. I would very much appreciate if someone could help me with an example as i am trying to create a group that when the player enters the trigger the group is respawned and then starts hunting the player

Many thanks in advance

Code: [Select]

Grp1 = Creategroup EAST;
_Leader="SquadLeaderE" createUnit [getMarkerPos "GrpM", Grp1, "Grp1=this", 1, "Sergeant "];
_Unit2="SoldierEB" createUnit [getMarkerPos "GrpM", Grp1, "", 1, "Corporal"];
_Unit3="SoldierEB" createUnit [getMarkerPos "GrpM", Grp1, "", 1, "Corporal"];
_Unit4="SoldierEG" createUnit [getMarkerPos "GrpM", Grp1, "", 1, "Corporal"];
_Unit5="SoldierEMG" createUnit [getMarkerPos "GrpM", Grp1, "", 1, "Corporal"];
_Unit6="SoldierEAT" createUnit [getMarkerPos "GrpM", Grp1, "", 1, "Corporal"];
_Unit7="SoldierESniper" createUnit [getMarkerPos "GrpM", Grp1, "", 1, "Corporal"];
exit

Offline Rommel92

  • Members
  • *
Re: Numpty Needs help with waypoints in MP script
« Reply #1 on: 21 Feb 2009, 16:25:00 »
Come on, little SQF never hurt anyone.  :P
Code: (script.sqf) [Select]
//exec: []execvm"script.sqf"
_grp = Creategroup EAST;
_grp createUnit ["SquadLeaderE", getMarkerPos "GrpM", ["GrpM"], 5, "FORM"];
_grp createUnit ["SoldierEB", getMarkerPos "GrpM", ["GrpM"], 5, "FORM"];
_grp createUnit ["SoldierEB", getMarkerPos "GrpM", ["GrpM"], 5, "FORM"];
_grp createUnit ["SoldierEG", getMarkerPos "GrpM", ["GrpM"], 5, "FORM"];
_grp createUnit ["SoldierEMG", getMarkerPos "GrpM", ["GrpM"], 5, "FORM"];
_grp createUnit ["SoldierEAT", getMarkerPos "GrpM", ["GrpM"], 5, "FORM"];
_grp createUnit ["SoldierESniper", getMarkerPos "GrpM", ["GrpM"], 5, "FORM"]

Nevermind, just re-read the question.
I got to go, but check out these links:

http://community.bistudio.com/wiki/addWaypoint
http://community.bistudio.com/wiki/deleteWaypoint

http://community.bistudio.com/wiki/Waypoint
http://community.bistudio.com/wiki/waypoints
http://community.bistudio.com/wiki/waypointPosition

http://community.bistudio.com/wiki/setWaypointType
http://community.bistudio.com/wiki/setWaypointPosition
http://community.bistudio.com/wiki/setWaypointBehaviour
http://community.bistudio.com/wiki/setWaypointCombatMode
http://community.bistudio.com/wiki/setWaypointFormation
http://community.bistudio.com/wiki/setWaypointSpeed
http://community.bistudio.com/wiki/setWaypointTimeout

-----------

http://community.bistudio.com/wiki?title=Special:Search&limit=20&offset=20&ns0=1&redirs=0&searchx=1&search=waypoint
« Last Edit: 21 Feb 2009, 16:29:54 by Rommel92 »

Offline trooper543

  • Members
  • *
Re: Numpty Needs help with waypoints in MP script
« Reply #2 on: 22 Feb 2009, 13:39:38 »
@ Rommel

As always mate many thanks for your response and for the links

However to just rephrase the question, I am using the cost code as shown but i am stuck and what i would like is for some assistance on how to carry on and how do i go about inserting waypoints into the script as shown but i want to use markers as reference points for the waypoints